Method: projects.locations.azureClusters.generateAzureClusterAgentToken

為叢集代理程式產生存取權杖。

HTTP 要求

POST https://{endpoint}/v1/{azureCluster=projects/*/locations/*/azureClusters/*}:generateAzureClusterAgentToken

其中 {endpoint}支援的服務端點之一。

這些網址使用 gRPC 轉碼語法。

路徑參數

參數
azureCluster

string

必填。

要求主體

要求主體包含下列結構的資料:

JSON 表示法
{
  "subjectToken": string,
  "subjectTokenType": string,
  "version": string,
  "nodePoolId": string,
  "grantType": string,
  "audience": string,
  "scope": string,
  "requestedTokenType": string,
  "options": string
}
欄位
subjectToken

string

必填。

subjectTokenType

string

必填。

version

string

必填。

nodePoolId

string

選填。

grantType

string

選填。

audience

string

選填。

scope

string

選填。

requestedTokenType

string

選填。

options

string

選填。

回應主體

如果成功,回應主體會含有以下結構的資料:

JSON 表示法
{
  "access_token": string,
  "expires_in": integer,
  "token_type": string
}
欄位
access_token

string

expires_in

integer

token_type

string

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform

詳情請參閱Authentication Overview