Cancels 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.
HTTP request
POST https://clouddeploy.googleapis.com/v1/{name=projects/*/locations/*/deliveryPipelines/*/automationRuns/*}:cancel
Required. Name of the AutomationRun. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/automationRuns/{automationRun}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[[["This webpage details how to cancel an `AutomationRun`, which, upon successful cancellation, will have its state set to `CANCELLED`."],["The `automationRuns.cancel` action is only applicable to `AutomationRun` instances in either `IN_PROGRESS` or `PENDING` states, and attempting to cancel an instance in a different state will result in a `FAILED_PRECONDITION` error."],["Cancelling an `AutomationRun` is accomplished through an HTTP POST request to a specific URL, which is structured using gRPC Transcoding syntax."],["The request requires a `name` path parameter indicating the specific `AutomationRun` to be cancelled and an empty request body."],["The process requires the `clouddeploy.automationRuns.cancel` IAM permission on the target resource and `https://www.googleapis.com/auth/cloud-platform` OAuth scope."]]],[]]