Obbligatorio. L'elemento DeliveryPipeline per cui deve essere creato il rollback Rollout. Il formato deve essere projects/{projectId}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
Corpo della richiesta
Il corpo della richiesta contiene dati con la seguente struttura:
Obbligatorio. ID dell'elemento Target di cui è in corso il rollback.
rolloutId
string
Obbligatorio. ID del rollback Rollout da creare.
releaseId
string
Facoltativo. ID dell'elemento Release a cui eseguire il rollback. Se non è specificato, il valore di Rollout precedente riuscito per il target specificato verrà utilizzato per determinare il Release.
rolloutToRollBack
string
Facoltativo. Se fornito, deve essere l'ultimo Rollout del giorno Target.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2024-06-27 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."]]