AutomationRun을 취소합니다. 취소 후 AutomationRun의 state는 CANCELLED입니다. automationRuns.cancel은 IN_PROGRESS 및 PENDING 상태의 AutomationRun에서 호출될 수 있습니다. 다른 상태의 AutomationRun은 FAILED_PRECONDITION 오류를 반환합니다.
HTTP 요청
POST https://clouddeploy.googleapis.com/v1/{name=projects/*/locations/*/deliveryPipelines/*/automationRuns/*}:cancel
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-07-17(UTC)"],[[["\u003cp\u003eThis webpage details how to cancel an \u003ccode\u003eAutomationRun\u003c/code\u003e, which, upon successful cancellation, will have its state set to \u003ccode\u003eCANCELLED\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eautomationRuns.cancel\u003c/code\u003e action is only applicable to \u003ccode\u003eAutomationRun\u003c/code\u003e instances in either \u003ccode\u003eIN_PROGRESS\u003c/code\u003e or \u003ccode\u003ePENDING\u003c/code\u003e states, and attempting to cancel an instance in a different state will result in a \u003ccode\u003eFAILED_PRECONDITION\u003c/code\u003e error.\u003c/p\u003e\n"],["\u003cp\u003eCancelling an \u003ccode\u003eAutomationRun\u003c/code\u003e is accomplished through an HTTP POST request to a specific URL, which is structured using gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003ename\u003c/code\u003e path parameter indicating the specific \u003ccode\u003eAutomationRun\u003c/code\u003e to be cancelled and an empty request body.\u003c/p\u003e\n"],["\u003cp\u003eThe process requires the \u003ccode\u003eclouddeploy.automationRuns.cancel\u003c/code\u003e IAM permission on the target resource and \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.deliveryPipelines.automationRuns.cancel\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nCancels an AutomationRun. The `state` of the `AutomationRun` after cancelling is `CANCELLED`. `automationRuns.cancel` can be called on AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun in a different state returns an `FAILED_PRECONDITION` error.\n\n### HTTP request\n\n`POST https://clouddeploy.googleapis.com/v1/{name=projects/*/locations/*/deliveryPipelines/*/automationRuns/*}:cancel`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is empty.\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.automationRuns.cancel`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]