Obtaining the Details About a Grayscale Release Task
Function
This API is used to obtain the details of 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.
URI
GET /v2/meshes/{mesh_id}/namespaces/{namespace}/releases/{release_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| mesh_id | Yes | String | Mesh ID |
| namespace | Yes | String | Namespace |
| release_id | Yes | String | Grayscale release task ID |
Request 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
| 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 |
| 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 |
| 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 |
| Parameter | Type | Description |
|---|---|---|
| clusterID | String | ID of the cluster where the grayscale workload resides |
| template | Object | Grayscale workload. For details, see Deployment | Kubernetes. |
| 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
| Parameter | Type | Description |
|---|---|---|
| errorCode | String | Error code |
Status code: 404
| Parameter | Type | Description |
|---|---|---|
| errorCode | String | Error code |
Example Requests
None
Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | The details about the grayscale release task are 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot