This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi
azure-native.authorization.getClientToken
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 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 pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi