1. Packages
  2. Azure Native v1
  3. API Docs
  4. authorization
  5. getClientToken
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.authorization.getClientToken

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    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
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi