Listing Application Objects of an Upgrade Task
Function
Lists application objects of a specified task by page.
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:listApplyObjects
List
-
-
-
-
URI
GET /v2/{project_id}/upgrade-task/{task_id}/apply-objects
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
| task_id | Yes | String | Task ID (exact query). |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| object_name | No | String | Application object name (fuzzy search is supported). |
| offset | No | Integer | Offset. The default value is 0. |
| limit | No | Integer | Number of records on each page. The default value is 10, and the maximum value is 100. |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| total_count | Integer | Total quantity. |
| apply_objects | Array of TaskApplyObjectDetailInfo objects | Application object list. |
| Parameter | Type | Description |
|---|---|---|
| object_id | String | Object ID. |
| object_type | String | Object type. |
| object_name | String | Object name. |
| object_extra_id | String | Object desktop ID. |
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
None
Example Responses
Status code: 200
ok
{
"total_count" : 10,
"apply_objects" : [ {
"object_id" : "desktop-001",
"object_type" : "DESKTOP",
"object_name" : "Test Desktop 1",
"object_extra_id" : "desktop-id-001"
} ]
} 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