Wajib. DeliveryPipeline yang akan membuat Rollout rollback. Format harus projects/{projectId}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Opsional. ID Release yang menjadi tujuan roll back. Jika tidak ditentukan, Rollout sebelumnya yang berhasil terhadap target yang ditentukan akan digunakan untuk menentukan Release.
rolloutToRollBack
string
Opsional. Jika disediakan, kolom ini harus berupa Rollout terbaru yang ada di Target.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-04-24 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."]]