Creating a Mesh Canary Upgrade Task
Function
This API is used to create a mesh canary upgrade 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
POST /v1/{project_id}/mesh-upgrade
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| Content-Type | Yes | String | Message body type (format) Range: |
| 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. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| kind | Yes | String | API type. Fixed value: MeshUpgrade |
| apiVersion | Yes | String | API version. Fixed value: v1 |
| metadata | Yes | MeshCanaryUpgradeMetadata object | Basic information about a mesh canary upgrade task. Metadata is a collection of attributes. |
| spec | Yes | MeshCanaryUpgeadeSpec object | Attributes of a mesh canary upgrade task |
| status | No | MeshCanaryUpgeadeStatus object | Status of a mesh canary upgrade task |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | Yes | String | Name of a mesh canary upgrade task |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| meshId | Yes | String | ID of the mesh to be upgraded |
| upgradeStrategy | Yes | String | Mesh upgrade policy |
| targetVersion | Yes | String | Target mesh version |
| targetType | Yes | String | Target mesh type |
| currentStep | Yes | MeshCanaryUpgradeCurrentStep object | Current upgrade step |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | Yes | String | Name of a canary upgrade step |
| action | Yes | String | Action of a canary upgrade step |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| kind | String | API type. Fixed value: MeshUpgrade |
| apiVersion | String | API version. Fixed value: v1 |
| metadata | MeshCanaryUpgradeMetadata object | Basic information about a mesh canary upgrade task. Metadata is a collection of attributes. |
| spec | MeshCanaryUpgeadeSpec object | Attributes of a mesh canary upgrade task |
| status | MeshCanaryUpgeadeStatus object | Status of a mesh canary upgrade task |
| Parameter | Type | Description |
|---|---|---|
| name | String | Name of a mesh canary upgrade task |
| uid | String | ID of a mesh canary upgrade task, which is unique. The value is automatically generated after the task is created. A custom value will not take effect. |
| creationTimestamp | String | Time when a mesh canary upgrade task is created |
| Parameter | Type | Description |
|---|---|---|
| meshId | String | ID of the mesh to be upgraded |
| upgradeStrategy | String | Mesh upgrade policy |
| targetVersion | String | Target mesh version |
| targetType | String | Target mesh type |
| currentStep | MeshCanaryUpgradeCurrentStep object | Current upgrade step |
| Parameter | Type | Description |
|---|---|---|
| name | String | Name of a canary upgrade step |
| action | String | Action of a canary upgrade step |
Example Requests
None
Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | The mesh canary task is delivered and the canary upgrade starts. |
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