CancelExecutionReleaseStage: Cancel a release stage execution

Updated at:

Applicable versions

Central Edition and Region Edition

Endpoints and authorization

  • Get a service endpoint and use it to replace {domain} in the request syntax.
  • Get a personal access token.
  • Get the organization ID. This is required for Central Edition only. To get the ID, go to the basic information page in the Organization Management console.

Product

Resource

Required permissions

Application Delivery

release stage

Read and write

Request syntax

Central Edition

POST https://{domain}/oapi/v1/appstack/organizations/{organizationId}/apps/{appName}/releaseWorkflows/{releaseWorkflowSn}/releaseStages/{releaseStageSn}/executions/{executionNumber}:cancel

Region Edition

POST https://{domain}/oapi/v1/appstack/apps/{appName}/releaseWorkflows/{releaseWorkflowSn}/releaseStages/{releaseStageSn}/executions/{executionNumber}:cancel

Request headers

Parameter

Type

Required

Description

Example value

x-yunxiao-token

string

Yes

Your personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Location

Required

Description

Example value

appName

string

path

Yes

The application name.

my-web-service

releaseWorkflowSn

string

path

Yes

The serial number of the release workflow.

3f472a12b15d4f418ad6227bb85f787c

releaseStageSn

string

path

Yes

The serial number of the release stage.

6b4c53eee9a842c6a11235b29d002a81

executionNumber

string

path

Yes

The pipeline run ID. This corresponds to the pipelineRunId value returned by ExecuteChangeRequestReleaseStage.

1

organizationId

string

path

  • Yes: Central Edition

  • No: Region Edition

The organization ID.

ec766e63aee3437d9a51f334d6exe671

Request examples

Central Edition

curl -X 'POST' \
  'https://{domain}/oapi/v1/appstack/organizations/ec766e63aee3437d9a51f334d6exe671/apps/my-web-service/releaseWorkflows/3f472a12b15d4f418ad6227bb85f787c/releaseStages/6b4c53eee9a842c6a11235b29d002a81/executions/1:cancel' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region Edition

curl -X 'POST' \
  'https://{domain}/oapi/v1/appstack/apps/my-web-service/releaseWorkflows/3f472a12b15d4f418ad6227bb85f787c/releaseStages/6b4c53eee9a842c6a11235b29d002a81/executions/1:cancel' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

boolean

A return value of true indicates a successful cancellation.

true

Response example

true

Error codes

For a list of error codes, see the Error Code Center.