為叢集代理程式產生存取權杖。
HTTP 要求
POST https://{endpoint}/v1/{awsCluster=projects/*/locations/*/awsClusters/*}:generateAwsClusterAgentToken
其中 {endpoint} 是支援的服務端點之一。
這些網址使用 gRPC 轉碼語法。
路徑參數
| 參數 | |
|---|---|
awsCluster | 
                
                   
 必填。  | 
              
要求主體
要求主體包含下列結構的資料:
| JSON 表示法 | 
|---|
{ "subjectToken": string, "subjectTokenType": string, "version": string, "nodePoolId": string, "grantType": string, "audience": string, "scope": string, "requestedTokenType": string, "options": string }  | 
                
| 欄位 | |
|---|---|
subjectToken | 
                  
                     
 必填。  | 
                
subjectTokenType | 
                  
                     
 必填。  | 
                
version | 
                  
                     
 必填。  | 
                
nodePoolId | 
                  
                     
 選填。  | 
                
grantType | 
                  
                     
 選填。  | 
                
audience | 
                  
                     
 選填。  | 
                
scope | 
                  
                     
 選填。  | 
                
requestedTokenType | 
                  
                     
 選填。  | 
                
options | 
                  
                     
 選填。  | 
                
回應主體
如果成功,回應主體會含有以下結構的資料:
| JSON 表示法 | 
|---|
{ "access_token": string, "expires_in": integer, "token_type": string }  | 
                  
| 欄位 | |
|---|---|
access_token | 
                    
                       
  | 
                  
expires_in | 
                    
                       
  | 
                  
token_type | 
                    
                       
  | 
                  
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/cloud-platform
詳情請參閱Authentication Overview。