SumoLogic

Pulumi Official
Package maintained by Pulumi
v0.9.0 published on Tuesday, Aug 16, 2022 by Pulumi

getCallerIdentity

Provides an easy way to retrieve Sumo Logic auth details.

Attributes reference

The following attributes are exported:

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

Example Usage

using System.Collections.Generic;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var current = SumoLogic.GetCallerIdentity.Invoke();

});
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
	})
}

Coming soon!

import pulumi
import pulumi_sumologic as sumologic

current = sumologic.get_caller_identity()
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const current = pulumi.output(sumologic.getCallerIdentity());
variables:
  current:
    Fn::Invoke:
      Function: sumologic:getCallerIdentity
      Arguments: {}

Using getCallerIdentity

function getCallerIdentity(opts?: InvokeOptions): Promise<GetCallerIdentityResult>
def get_caller_identity(opts: Optional[InvokeOptions] = None) -> GetCallerIdentityResult
func GetCallerIdentity(ctx *Context, opts ...InvokeOption) (*GetCallerIdentityResult, error)

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

public static class GetCallerIdentity 
{
    public static Task<GetCallerIdentityResult> InvokeAsync(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
https://github.com/pulumi/pulumi-sumologic
License
Apache-2.0
Notes

This Pulumi package is based on the sumologic Terraform Provider.