- HTTP request
 - Path parameters
 - Query parameters
 - Request body
 - Response body
 - Authorization scopes
 - ServiceAccountPublicKeyType
 - Examples
 - Try it!
 
Gets a ServiceAccountKey.
HTTP request
GET https://iam.googleapis.com/v1/{name=projects/*/serviceAccounts/*/keys/*}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name | 
                
                   
 Required. The resource name of the service account key. Use one of the following formats: 
 As an alternative, you can use the  
 When possible, avoid using the  Authorization requires the following IAM permission on the specified resource  
  | 
              
Query parameters
| Parameters | |
|---|---|
publicKeyType | 
                
                   
 Optional. The output format of the public key. The default is   | 
              
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of ServiceAccountKey.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/iamhttps://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ServiceAccountPublicKeyType
Supported public key output formats.
| Enums | |
|---|---|
TYPE_NONE | 
                Do not return the public key. | 
TYPE_X509_PEM_FILE | 
                X509 PEM format. | 
TYPE_RAW_PUBLIC_KEY | 
                raw public key. |