Help Center/ Application Service Mesh/ API Reference/ API/ Grayscale Releases/ Obtaining the Grayscale Release Task List
Updated on 2026-06-25 GMT+08:00

Obtaining the Grayscale Release Task List

Function

This API is used to obtain the list of grayscale release tasks.

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:listReleases

    List

    mesh *

    • g:EnterpriseProjectId

    • g:ResourceTag/<tag-key>

    -

    -

URI

GET /v2/meshes/{mesh_id}/releases

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

mesh_id

Yes

String

Mesh ID

Request Parameters

Table 2 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.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

kind

String

API type. Fixed value: ReleaseList

apiVersion

String

API version. Fixed value: asm/v2

items

Array of Release objects

Grayscale release task list of a mesh

Table 4 Release

Parameter

Type

Description

kind

String

API type. Fixed value: Release

apiVersion

String

API version. Fixed value: asm/v2

metadata

ReleaseMetadata object

Basic information about the grayscale release task of a mesh. Metadata is a collection of attributes.

spec

ReleaseSpec object

Attributes of the grayscale release task of a mesh

status

ReleaseStatus object

Status of the grayscale release task of a mesh

Table 5 ReleaseMetadata

Parameter

Type

Description

meshID

String

ID of the mesh that a grayscale release task belongs to

name

String

Grayscale release task name

Enter 4 to 64 characters. The name must start with a lowercase letter and not end with a hyphen (-). Only lowercase letters, digits, and hyphens (-) are allowed.

uid

String

ID of the grayscale release task, which is unique. The value is automatically generated after the task is created. A custom value will not take effect.

namespace

String

Namespace of the grayscale release task

Table 6 ReleaseSpec

Parameter

Type

Description

serviceName

String

Name of the service corresponding to the grayscale release task of a mesh

clusterID

String

ID of the cluster corresponding to the grayscale release task of a mesh

deploymentName

String

Name of the workload corresponding to the grayscale release task of a mesh

version

String

Mesh version corresponding to a grayscale release task

type

String

Type of the grayscale release task of a mesh

grayDeployments

Array of GrayWorkload objects

Grayscale workload template for the grayscale release task of a mesh

Table 7 GrayWorkload

Parameter

Type

Description

clusterID

String

ID of the cluster where the grayscale workload resides

template

Object

Grayscale workload. For details, see Deployment | Kubernetes.

Table 8 ReleaseStatus

Parameter

Type

Description

phase

String

Phase of the grayscale release task of a mesh

startTime

String

Start time of the grayscale release task of a mesh

updateTime

String

Update time of the grayscale release task of a mesh

deployment

Object

Original workload in the grayscale release task of a mesh. For details, see Deployment | Kubernetes.

grayDeployments

Array of objects

Grayscale workload created in the grayscale release task of a mesh. For details, see Deployment | Kubernetes.

Status code: 400

Table 9 Response body parameters

Parameter

Type

Description

errorCode

String

Error code

Status code: 404

Table 10 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 list is obtained.

400

Failed to obtain the grayscale release task details due to incorrect parameters.

404

The corresponding grayscale release task was not found.

Error Codes

See Error Codes.