sumologic logo
Sumo Logic v0.14.0, May 25 23


Explore with Pulumi AI

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/” where “” is the email address of the user. For example, if a user with email address has Rockets folder inside Personal folder, the path of Rockets folder will be /Library/Users/

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.

Attributes reference

The following attributes are exported:

  • id - The ID of the folder.
  • name - The name of the folder.

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
  function: sumologic:index/getFolder:getFolder
    # 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

Sumo Logic pulumi/pulumi-sumologic

This Pulumi package is based on the sumologic Terraform Provider.