1. Packages
  2. Azure Native v2
  3. API Docs
  4. authorization
  5. getClientToken
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.authorization.getClientToken

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 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>
Copy
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]
Copy
func GetClientToken(ctx *Context, args *GetClientTokenArgs, opts ...InvokeOption) (*GetClientTokenResult, error)
func GetClientTokenOutput(ctx *Context, args *GetClientTokenOutputArgs, opts ...InvokeOption) GetClientTokenResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetClientTokenResult> getClientToken(GetClientTokenArgs args, InvokeOptions options)
public static Output<GetClientTokenResult> getClientToken(GetClientTokenArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:authorization:getClientToken
  arguments:
    # arguments dictionary
Copy

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-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi