Required. The DeliveryPipeline for which the rollback Rollout must be created. The format is projects/{projectId}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
Request body
The request body contains data with the following structure:
Required. ID of the Target that is being rolled back.
rolloutId
string
Required. ID of the rollback Rollout to create.
releaseId
string
Optional. ID of the Release to roll back to. If this isn't specified, the previous successful Rollout to the specified target will be used to determine the Release.
rolloutToRollBack
string
Optional. If provided, this must be the latest Rollout that is on the Target.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-13 UTC."],[[["\u003cp\u003eThis document describes how to create a rollback \u003ccode\u003eRollout\u003c/code\u003e for a specified target using the \u003ccode\u003edeliveryPipelines.rollbackTarget\u003c/code\u003e method via a POST HTTP request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e path parameter is a required string that specifies the \u003ccode\u003eDeliveryPipeline\u003c/code\u003e for which the rollback \u003ccode\u003eRollout\u003c/code\u003e must be created, following a defined format.\u003c/p\u003e\n"],["\u003cp\u003eThe request body includes several required and optional fields, such as \u003ccode\u003etargetId\u003c/code\u003e, \u003ccode\u003erolloutId\u003c/code\u003e, \u003ccode\u003ereleaseId\u003c/code\u003e, \u003ccode\u003erolloutToRollBack\u003c/code\u003e, \u003ccode\u003erollbackConfig\u003c/code\u003e, \u003ccode\u003evalidateOnly\u003c/code\u003e, and \u003ccode\u003eoverrideDeployPolicy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe response body returns a \u003ccode\u003eRollbackTargetResponse\u003c/code\u003e which contains the \u003ccode\u003erollbackConfig\u003c/code\u003e, and represents the configuration of the created rollback \u003ccode\u003eRollout\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eExecuting this operation requires the \u003ccode\u003eclouddeploy.rollouts.rollback\u003c/code\u003e IAM permission on the specified resource and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.deliveryPipelines.rollbackTarget\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.RollbackTargetResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [RollbackTargetConfig](#RollbackTargetConfig)\n - [JSON representation](#RollbackTargetConfig.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nCreates a `Rollout` to roll back the specified target.\n\n### HTTP request\n\n`POST https://clouddeploy.googleapis.com/v1/{name=projects/*/locations/*/deliveryPipelines/*}:rollbackTarget`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nThe response object from `deliveryPipelines.rollbackTarget`.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `clouddeploy.rollouts.rollback`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs).\n\nRollbackTargetConfig\n--------------------\n\nConfigs for the Rollback rollout."]]