Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.authorization.getClientToken
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Use this function to get an Google 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(opts?: InvokeOptions): Promise<GetClientTokenResult>
function getClientTokenOutput(opts?: InvokeOptions): Output<GetClientTokenResult>
def get_client_token(opts: Optional[InvokeOptions] = None) -> GetClientTokenResult
def get_client_token_output(opts: Optional[InvokeOptions] = None) -> Output[GetClientTokenResult]
func GetClientToken(ctx *Context, opts ...InvokeOption) (*GetClientTokenResult, error)
func GetClientTokenOutput(ctx *Context, opts ...InvokeOption) GetClientTokenResultOutput
> Note: This function is named GetClientToken
in the Go SDK.
public static class GetClientToken
{
public static Task<GetClientTokenResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetClientTokenResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetClientTokenResult> getClientToken(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:authorization:getClientToken
arguments:
# arguments dictionary
getClientToken Result
The following output properties are available:
- Access
Token string - The OAuth2 access token used by the client to authenticate against the Google Cloud API.
- Token
Type string - The type of auth token. Possible types are "Bearer", "MAC", "Basic".
- Expiry string
- Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.
- Refresh
Token string - RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.
- Access
Token string - The OAuth2 access token used by the client to authenticate against the Google Cloud API.
- Token
Type string - The type of auth token. Possible types are "Bearer", "MAC", "Basic".
- Expiry string
- Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.
- Refresh
Token string - RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.
- access
Token String - The OAuth2 access token used by the client to authenticate against the Google Cloud API.
- token
Type String - The type of auth token. Possible types are "Bearer", "MAC", "Basic".
- expiry String
- Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.
- refresh
Token String - RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.
- access
Token string - The OAuth2 access token used by the client to authenticate against the Google Cloud API.
- token
Type string - The type of auth token. Possible types are "Bearer", "MAC", "Basic".
- expiry string
- Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.
- refresh
Token string - RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.
- access_
token str - The OAuth2 access token used by the client to authenticate against the Google Cloud API.
- token_
type str - The type of auth token. Possible types are "Bearer", "MAC", "Basic".
- expiry str
- Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.
- refresh_
token str - RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.
- access
Token String - The OAuth2 access token used by the client to authenticate against the Google Cloud API.
- token
Type String - The type of auth token. Possible types are "Bearer", "MAC", "Basic".
- expiry String
- Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.
- refresh
Token String - RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi