Azure Native

Pulumi Official
Package maintained by Pulumi
v1.67.0 published on Tuesday, Jul 12, 2022 by Pulumi

getClientToken

Use this function to get an Azure authentication token for the current login context.

Using getClientToken

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 getClientToken(args: GetClientTokenArgs, opts?: InvokeOptions): Promise<GetClientTokenResult>
function getClientTokenOutput(args: GetClientTokenOutputArgs, opts?: InvokeOptions): Output<GetClientTokenResult>
def get_client_token(endpoint: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetClientTokenResult
def get_client_token_output(endpoint: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetClientTokenResult]
func GetClientToken(ctx *Context, args *GetClientTokenArgs, opts ...InvokeOption) (*GetClientTokenResult, error)
func GetClientTokenOutput(ctx *Context, args *GetClientTokenOutputArgs, opts ...InvokeOption) GetClientTokenResultOutput

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

public static class GetClientToken 
{
    public static Task<GetClientTokenResult> InvokeAsync(GetClientTokenArgs args, InvokeOptions? opts = null)
    public static Output<GetClientTokenResult> Invoke(GetClientTokenInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClientTokenResult> getClientToken(GetClientTokenArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: azure-native:authorization:getClientToken
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Endpoint string

Optional authentication endpoint. Defaults to the endpoint of Azure Resource Manager.

Endpoint string

Optional authentication endpoint. Defaults to the endpoint of Azure Resource Manager.

endpoint String

Optional authentication endpoint. Defaults to the endpoint of Azure Resource Manager.

endpoint string

Optional authentication endpoint. Defaults to the endpoint of Azure Resource Manager.

endpoint str

Optional authentication endpoint. Defaults to the endpoint of Azure Resource Manager.

endpoint String

Optional authentication endpoint. Defaults to the endpoint of Azure Resource Manager.

getClientToken Result

The following output properties are available:

Token string

OAuth token for Azure Management API and SDK authentication.

Token string

OAuth token for Azure Management API and SDK authentication.

token String

OAuth token for Azure Management API and SDK authentication.

token string

OAuth token for Azure Management API and SDK authentication.

token str

OAuth token for Azure Management API and SDK authentication.

token String

OAuth token for Azure Management API and SDK authentication.

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0