Method: projects.locations.triggers.list

Lists existing BuildTriggers.

HTTP request

GET https://cloudbuild.googleapis.com/v1/{parent=projects/*/locations/*}/triggers

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The parent of the collection of Triggers. Format: projects/{project}/locations/{location}

Authorization requires the following IAM permission on the specified resource parent:

  • cloudbuild.builds.list

Query parameters

Parameters
projectId

string

Required. ID of the project for which to list BuildTriggers.

pageSize

integer

Number of results to return in the list.

pageToken

string

Token to provide to skip to a particular spot in the list.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of ListBuildTriggersResponse.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.