Method: projects.locations.apis.deployments.rollback

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

HTTP request

POST https://apigeeregistry.googleapis.com/v1/{name=projects/*/locations/*/apis/*/deployments/*}:rollback

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The deployment being rolled back.

Request body

The request body contains data with the following structure:

JSON representation
{
  "revisionId": string
}
Fields
revisionId

string

Required. The revision ID to roll back to. It must be a revision of the same deployment.

Example: c7cfa2a8

Response body

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

Authorization Scopes

Requires the following OAuth scope:

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