Method: projects.triggers.list

Lists existing BuildTriggers.

This API is experimental.

HTTP request

GET https://cloudbuild.googleapis.com/v1/projects/{projectId}/triggers

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
projectId

string

ID of the project for which to list BuildTriggers.

Query parameters

Parameters
pageSize

number

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 data with the following structure:

Response containing existing BuildTriggers.

JSON representation
{
  "triggers": [
    {
      object (BuildTrigger)
    }
  ],
  "nextPageToken": string
}
Fields
triggers[]

object (BuildTrigger)

BuildTriggers for the project, sorted by createTime descending.

nextPageToken

string

Token to receive the next page of results.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

Try it!

Feedback verzenden over...