1. Packages
  2. Google Cloud Native
  3. API Docs
  4. authorization
  5. getClientToken

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-native logo

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:

    AccessToken string
    The OAuth2 access token used by the client to authenticate against the Google Cloud API.
    TokenType 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.
    RefreshToken string
    RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.
    AccessToken string
    The OAuth2 access token used by the client to authenticate against the Google Cloud API.
    TokenType 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.
    RefreshToken string
    RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.
    accessToken String
    The OAuth2 access token used by the client to authenticate against the Google Cloud API.
    tokenType 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.
    refreshToken String
    RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.
    accessToken string
    The OAuth2 access token used by the client to authenticate against the Google Cloud API.
    tokenType 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.
    refreshToken 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.
    accessToken String
    The OAuth2 access token used by the client to authenticate against the Google Cloud API.
    tokenType 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.
    refreshToken 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-native logo

    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