1. Packages
  2. Sumo Logic
  3. API Docs
  4. getFolder
Sumo Logic v0.22.1 published on Sunday, Jun 9, 2024 by Pulumi

sumologic.getFolder

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.22.1 published on Sunday, Jun 9, 2024 by Pulumi

    Provides an easy way to retrieve a folder.

    You must specify the absolute path of the folder to retrieve. The content library has “Library” folder at the root level. For items in “Personal” folder, the base path is “/Library/Users/user@sumologic.com” where “user@sumologic.com” is the email address of the user. For example, if a user with email address wile@acme.com has Rockets folder inside Personal folder, the path of Rockets folder will be /Library/Users/wile@acme.com/Rockets.

    For items in “Admin Recommended” folder, the base path is “/Library/Admin Recommended”. For example, given a folder Acme in Admin Recommended folder, the path will be /Library/Admin Recommended/Acme.

    Using getFolder

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getFolder(args: GetFolderArgs, opts?: InvokeOptions): Promise<GetFolderResult>
    function getFolderOutput(args: GetFolderOutputArgs, opts?: InvokeOptions): Output<GetFolderResult>
    def get_folder(path: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetFolderResult
    def get_folder_output(path: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetFolderResult]
    func LookupFolder(ctx *Context, args *LookupFolderArgs, opts ...InvokeOption) (*LookupFolderResult, error)
    func LookupFolderOutput(ctx *Context, args *LookupFolderOutputArgs, opts ...InvokeOption) LookupFolderResultOutput

    > Note: This function is named LookupFolder in the Go SDK.

    public static class GetFolder 
    {
        public static Task<GetFolderResult> InvokeAsync(GetFolderArgs args, InvokeOptions? opts = null)
        public static Output<GetFolderResult> Invoke(GetFolderInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFolderResult> getFolder(GetFolderArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: sumologic:index/getFolder:getFolder
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Path string
    Path string
    path String
    path string
    path str
    path String

    getFolder Result

    The following output properties are available:

    Id string
    Name string
    Path string
    Id string
    Name string
    Path string
    id String
    name String
    path String
    id string
    name string
    path string
    id str
    name str
    path str
    id String
    name String
    path String

    Package Details

    Repository
    Sumo Logic pulumi/pulumi-sumologic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sumologic Terraform Provider.
    sumologic logo
    Sumo Logic v0.22.1 published on Sunday, Jun 9, 2024 by Pulumi