1. Packages
  2. Sumo Logic
  3. API Docs
  4. getCallerIdentity
Sumo Logic v0.23.4 published on Friday, Sep 20, 2024 by Pulumi

sumologic.getCallerIdentity

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.23.4 published on Friday, Sep 20, 2024 by Pulumi

    Provides an easy way to retrieve Sumo Logic auth details.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const current = sumologic.getCallerIdentity({});
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    current = sumologic.get_caller_identity()
    
    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.GetCallerIdentity(ctx, nil, 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 current = SumoLogic.GetCallerIdentity.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.SumologicFunctions;
    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 current = SumologicFunctions.getCallerIdentity();
    
        }
    }
    
    variables:
      current:
        fn::invoke:
          Function: sumologic:getCallerIdentity
          Arguments: {}
    

    Attributes reference

    The following attributes are exported:

    • access_id - Sumo Logic access ID.
    • environment - API endpoint environment.

    Using getCallerIdentity

    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 getCallerIdentity(opts?: InvokeOptions): Promise<GetCallerIdentityResult>
    function getCallerIdentityOutput(opts?: InvokeOptions): Output<GetCallerIdentityResult>
    def get_caller_identity(opts: Optional[InvokeOptions] = None) -> GetCallerIdentityResult
    def get_caller_identity_output(opts: Optional[InvokeOptions] = None) -> Output[GetCallerIdentityResult]
    func GetCallerIdentity(ctx *Context, opts ...InvokeOption) (*GetCallerIdentityResult, error)
    func GetCallerIdentityOutput(ctx *Context, opts ...InvokeOption) GetCallerIdentityResultOutput

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

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

    getCallerIdentity Result

    The following output properties are available:

    AccessId string
    Environment string
    Id string
    The provider-assigned unique ID for this managed resource.
    AccessId string
    Environment string
    Id string
    The provider-assigned unique ID for this managed resource.
    accessId String
    environment String
    id String
    The provider-assigned unique ID for this managed resource.
    accessId string
    environment string
    id string
    The provider-assigned unique ID for this managed resource.
    access_id str
    environment str
    id str
    The provider-assigned unique ID for this managed resource.
    accessId String
    environment String
    id String
    The provider-assigned unique ID for this managed resource.

    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.4 published on Friday, Sep 20, 2024 by Pulumi