1. Packages
  2. Sumologic Provider
  3. API Docs
  4. getPersonalFolder
Sumo Logic v0.23.7 published on Thursday, Oct 24, 2024 by Pulumi

sumologic.getPersonalFolder

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.23.7 published on Thursday, Oct 24, 2024 by Pulumi

    Provides an easy way to retrieve the Personal Folder.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const personalFolder = sumologic.getPersonalFolder({});
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    personal_folder = sumologic.get_personal_folder()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sumologic.GetPersonalFolder(ctx, &sumologic.GetPersonalFolderArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SumoLogic = Pulumi.SumoLogic;
    
    return await Deployment.RunAsync(() => 
    {
        var personalFolder = SumoLogic.GetPersonalFolder.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.SumologicFunctions;
    import com.pulumi.sumologic.inputs.GetPersonalFolderArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var personalFolder = SumologicFunctions.getPersonalFolder();
    
        }
    }
    
    variables:
      personalFolder:
        fn::invoke:
          Function: sumologic:getPersonalFolder
          Arguments: {}
    

    Attributes reference

    The following attributes are exported:

    • id - The ID of the Personal Folder.
    • name - The name of the Personal Folder.
    • description - The description of the Personal Folder.

    Using getPersonalFolder

    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 getPersonalFolder(args: GetPersonalFolderArgs, opts?: InvokeOptions): Promise<GetPersonalFolderResult>
    function getPersonalFolderOutput(args: GetPersonalFolderOutputArgs, opts?: InvokeOptions): Output<GetPersonalFolderResult>
    def get_personal_folder(description: Optional[str] = None,
                            id: Optional[str] = None,
                            name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetPersonalFolderResult
    def get_personal_folder_output(description: Optional[pulumi.Input[str]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetPersonalFolderResult]
    func GetPersonalFolder(ctx *Context, args *GetPersonalFolderArgs, opts ...InvokeOption) (*GetPersonalFolderResult, error)
    func GetPersonalFolderOutput(ctx *Context, args *GetPersonalFolderOutputArgs, opts ...InvokeOption) GetPersonalFolderResultOutput

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

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

    The following arguments are supported:

    Description string
    Id string
    Name string
    Description string
    Id string
    Name string
    description String
    id String
    name String
    description string
    id string
    name string
    description str
    id str
    name str
    description String
    id String
    name String

    getPersonalFolder Result

    The following output properties are available:

    Description string
    Id string
    Name string
    Description string
    Id string
    Name string
    description String
    id String
    name String
    description string
    id string
    name string
    description str
    id str
    name str
    description String
    id String
    name 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.23.7 published on Thursday, Oct 24, 2024 by Pulumi