Generates an access token for a cluster agent.
HTTP request
POST https://{endpoint}/v1/{awsCluster=projects/*/locations/*/awsClusters/*}:generateAwsClusterAgentToken
Where {endpoint}
is one of the supported service endpoints.
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
aws |
Required. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "subjectToken": string, "subjectTokenType": string, "version": string, "nodePoolId": string, "grantType": string, "audience": string, "scope": string, "requestedTokenType": string, "options": string } |
Fields | |
---|---|
subject |
Required. |
subject |
Required. |
version |
Required. |
node |
Optional. |
grant |
Optional. |
audience |
Optional. |
scope |
Optional. |
requested |
Optional. |
options |
Optional. |
Response body
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "access_token": string, "expires_in": integer, "token_type": string } |
Fields | |
---|---|
access_ |
|
expires_ |
|
token_ |
|
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.