Method: projects.locations.workflows.listRevisions

Lists revisions for a given workflow.

HTTP request

GET https://workflows.googleapis.com/v1/{name=projects/*/locations/*/workflows/*}:listRevisions

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Workflow for which the revisions should be listed. Format: projects/{project}/locations/{location}/workflows/{workflow}

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

  • workflows.workflows.listRevision

Query parameters

Parameters
pageSize

integer

The maximum number of revisions to return per page. If a value is not specified, a default value of 20 is used. The maximum permitted value is 100. Values greater than 100 are coerced down to 100.

pageToken

string

The page token, received from a previous workflows.listRevisions call. Provide this to retrieve the subsequent page.

Request body

The request body must be empty.

Response body

Response for the workflows.listRevisions method.

If successful, the response body contains data with the following structure:

JSON representation
{
  "workflows": [
    {
      object (Workflow)
    }
  ],
  "nextPageToken": string
}
Fields
workflows[]

object (Workflow)

The revisions of the workflow, ordered in reverse chronological order.

nextPageToken

string

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.