Triggering an Upgrade Task
Function
Triggers a desktop upgrade task based on the configured parameters.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
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
workspace:upgradeTask:execute
Write
-
-
-
-
URI
POST /v2/{project_id}/upgrade-task/execute
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| is_force_execute | Yes | Integer | Whether to forcibly upgrade the version. The value can be 0 (no) or 1 (yes). |
| target_version | Yes | String | Target version. |
| description | No | String | Upgrade task description. |
| is_notify | Yes | Integer | Whether to enable the notification. The value can be 0 (no) or 1 (yes). |
| extra_params | No | String | Extended parameter (in JSON format). |
| desktop_sids | No | Array of strings | Desktop SID list. |
Response Parameters
Status code: 200
ok
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Service error code. |
| error_msg | String | Service error message. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Service error code. |
| error_msg | String | Service error message. |
Example Requests
{
"is_force_execute" : 1,
"target_version" : "24.6.3",
"is_notify" : 1,
"extra_params" : "{}",
"desktop_sids" : [ "sid-001", "sid-002", "sid-003" ]
} Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | ok |
| 400 | Invalid request parameter. |
| 500 | Internal server error. |
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