Updated on 2026-06-25 GMT+08:00

Deleting a Grayscale Release Task

Function

This API is used to cancel or end a grayscale release task.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    asm:mesh:deleteRelease

    Write

    mesh *

    • g:EnterpriseProjectId

    • g:ResourceTag/<tag-key>

    -

    -

URI

DELETE /v2/meshes/{mesh_id}/namespaces/{namespace}/releases/{release_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

mesh_id

Yes

String

Mesh ID

namespace

Yes

String

Namespace

release_id

Yes

String

Grayscale release task ID

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

action

Yes

String

Cancel or end a grayscale release task.

To cancel a grayscale release task, the original version must take over all traffic. To end a grayscale release task, the grayscale version must take over all traffic.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token.

Content-Type

Yes

String

Message body type (format)

Range:

  • application/json;charset=utf-8: The content is in JSON format and encoded using UTF-8.

  • application/json: The content is in JSON format.

Response Parameters

Status code: 200

The grayscale release task is canceled or ended.

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

errorCode

String

Error code

Status code: 404

Table 5 Response body parameters

Parameter

Type

Description

errorCode

String

Error code

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

The grayscale release task is canceled or ended.

400

Failed to cancel or end the grayscale release task due to incorrect parameters.

404

The corresponding grayscale release task was not found.

Error Codes

See Error Codes.