Returns the DefaultServiceAccount
used by the project.
HTTP request
GET https://cloudbuild.googleapis.com/v1/{name=projects/*/locations/*/defaultServiceAccount}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The name of the Authorization requires the following IAM permission on the specified resource
|
Request body
The request body must be empty.
Response body
The default service account used for Builds
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "name": string, "serviceAccountEmail": string } |
Fields | |
---|---|
name |
Identifier. Format: `projects/{project}/locations/{location}/defaultServiceAccount |
serviceAccountEmail |
Output only. The email address of the service account identity that will be used for a build by default. This is returned in the format If no service account will be used by default, this will be empty. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.