Method: projects.locations.deliveryPipelines.automationRuns.cancel

取消 AutomationRun。取消后,AutomationRunstateCANCELLED。在 AutomationRun 处于 IN_PROGRESSPENDING 状态时,可以调用 automationRuns.cancel;在其他状态下,则 AutomationRun 会返回 FAILED_PRECONDITION 错误。

HTTP 请求

POST https://clouddeploy.googleapis.com/v1/{name=projects/*/locations/*/deliveryPipelines/*/automationRuns/*}:cancel

网址采用 gRPC 转码语法。

路径参数

参数
name

string

必需。AutomationRun 的名称。格式为 projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/automationRuns/{automationRun}

请求正文

请求正文必须为空。

响应正文

如果成功,则响应正文为空。

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/cloud-platform

如需了解详情,请参阅身份验证概览

IAM 权限

需要拥有 name 资源的以下 IAM 权限:

  • clouddeploy.automationRuns.cancel

如需了解详情,请参阅 IAM 文档