Obrigatório. O DeliveryPipeline em que a reversão Rollout precisa ser criada. O formato precisa ser projects/{projectId}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
Corpo da solicitação
O corpo da solicitação contém dados com a seguinte estrutura:
Obrigatório. ID do Target que está sendo revertido.
rolloutId
string
Obrigatório. ID do Rollout de reversão a ser criado.
releaseId
string
Opcional. ID do Release para o qual reverter será feita. Se isso não for especificado, o Rollout anterior bem-sucedido para o destino especificado será usado para determinar o Release.
rolloutToRollBack
string
Opcional. Se fornecido, precisa ser o Rollout mais recente no Target.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2024-06-26 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."]]