sumologic 3.1.7 published on Friday, Oct 31, 2025 by sumologic
sumologic.getCallerIdentity
Start a Neo task
Explain and create a sumologic.getCallerIdentity resource
sumologic 3.1.7 published on Friday, Oct 31, 2025 by sumologic
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-terraform-provider/sdks/go/sumologic/v3/sumologic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sumologic.GetCallerIdentity(ctx, &sumologic.GetCallerIdentityArgs{}, 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 com.pulumi.sumologic.inputs.GetCallerIdentityArgs;
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(args: GetCallerIdentityArgs, opts?: InvokeOptions): Promise<GetCallerIdentityResult>
function getCallerIdentityOutput(args: GetCallerIdentityOutputArgs, opts?: InvokeOptions): Output<GetCallerIdentityResult>def get_caller_identity(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCallerIdentityResult
def get_caller_identity_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCallerIdentityResult]func GetCallerIdentity(ctx *Context, args *GetCallerIdentityArgs, opts ...InvokeOption) (*GetCallerIdentityResult, error)
func GetCallerIdentityOutput(ctx *Context, args *GetCallerIdentityOutputArgs, opts ...InvokeOption) GetCallerIdentityResultOutput> Note: This function is named GetCallerIdentity in the Go SDK.
public static class GetCallerIdentity
{
public static Task<GetCallerIdentityResult> InvokeAsync(GetCallerIdentityArgs args, InvokeOptions? opts = null)
public static Output<GetCallerIdentityResult> Invoke(GetCallerIdentityInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCallerIdentityResult> getCallerIdentity(GetCallerIdentityArgs args, InvokeOptions options)
public static Output<GetCallerIdentityResult> getCallerIdentity(GetCallerIdentityArgs args, InvokeOptions options)
fn::invoke:
function: sumologic:index/getCallerIdentity:getCallerIdentity
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Id string
- id String
- id string
- id str
- id String
getCallerIdentity Result
The following output properties are available:
- Access
Id string - Environment string
- Id string
- Access
Id string - Environment string
- Id string
- access
Id String - environment String
- id String
- access
Id string - environment string
- id string
- access_
id str - environment str
- id str
- access
Id String - environment String
- id String
Package Details
- Repository
- Sumo Logic sumologic/terraform-provider-sumologic
- License
- Notes
- This Pulumi package is based on the
sumologicTerraform Provider.
sumologic 3.1.7 published on Friday, Oct 31, 2025 by sumologic
