- Requête HTTP
 - Paramètres de chemin d'accès
 - Corps de la requête
 - Corps de la réponse
 - Champs d'application des autorisations
 
Génère un jeton d'accès pour un agent de cluster.
Requête HTTP
POST https://{endpoint}/v1/{attachedCluster=projects/*/locations/*/attachedClusters/*}:generateAttachedClusterAgentToken
Où {endpoint} est l'un des points de terminaison de service compatibles.
Les URL utilisent la syntaxe de transcodage gRPC.
Paramètres de chemin d'accès
| Paramètres | |
|---|---|
attachedCluster | 
                
                   
 Obligatoire.  | 
              
Corps de la requête
Le corps de la requête contient des données présentant la structure suivante :
| Représentation JSON | 
|---|
{ "subjectToken": string, "subjectTokenType": string, "version": string, "grantType": string, "audience": string, "scope": string, "requestedTokenType": string, "options": string }  | 
                
| Champs | |
|---|---|
subjectToken | 
                  
                     
 Obligatoire.  | 
                
subjectTokenType | 
                  
                     
 Obligatoire.  | 
                
version | 
                  
                     
 Obligatoire.  | 
                
grantType | 
                  
                     
 Facultatif.  | 
                
audience | 
                  
                     
 Facultatif.  | 
                
scope | 
                  
                     
 Facultatif.  | 
                
requestedTokenType | 
                  
                     
 Facultatif.  | 
                
options | 
                  
                     
 Facultatif.  | 
                
Corps de la réponse
Si la requête aboutit, le corps de la réponse contient des données présentant la structure suivante :
| Représentation JSON | 
|---|
{ "access_token": string, "expires_in": integer, "token_type": string }  | 
                  
| Champs | |
|---|---|
access_token | 
                    
                       
  | 
                  
expires_in | 
                    
                       
  | 
                  
token_type | 
                    
                       
  | 
                  
Champs d'application des autorisations
Requiert le niveau d'accès OAuth suivant :
https://www.googleapis.com/auth/cloud-platform
Pour plus d'informations, consultez la Authentication Overview.