Erforderlich. Die DeliveryPipeline, für die das Rollback-Rollout erstellt werden soll. Verwenden Sie das Format projects/{projectId}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
Anfragetext
Der Anfragetext enthält Daten mit folgender Struktur:
Erforderlich. ID der Target, für die ein Rollback durchgeführt wird.
rolloutId
string
Erforderlich. ID des zu erstellenden Rollback-Rollout.
releaseId
string
Optional. ID des Release, auf den das Rollback durchgeführt werden soll. Wenn dies nicht festgelegt ist, wird der vorherige erfolgreiche Rollout für das angegebene Ziel verwendet, um Release zu bestimmen.
rolloutToRollBack
string
Optional. Falls angegeben, muss dies der letzte Rollout sein, der sich im Target befindet.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-06-28 (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."]]