@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 1.09 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this function to get an Azure authentication token for the current login context.
*/
export declare function getClientToken(args?: GetClientTokenArgs, opts?: pulumi.InvokeOptions): Promise<GetClientTokenResult>;
export interface GetClientTokenArgs {
/**
* Optional authentication endpoint. Defaults to the endpoint of Azure Resource Manager.
*/
endpoint?: string;
}
/**
* Configuration values returned by getClientToken.
*/
export interface GetClientTokenResult {
/**
* OAuth token for Azure Management API and SDK authentication.
*/
readonly token: string;
}
/**
* Use this function to get an Azure authentication token for the current login context.
*/
export declare function getClientTokenOutput(args?: GetClientTokenOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetClientTokenResult>;
export interface GetClientTokenOutputArgs {
/**
* Optional authentication endpoint. Defaults to the endpoint of Azure Resource Manager.
*/
endpoint?: pulumi.Input<string>;
}