Display the list of cloud product configuration check, repair, and rollback tasks
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| yundun-sas:ListOperatedTask | list | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| CurrentPage | integer | No | The page number to display in a paginated query. | 1 |
| PageSize | integer | No | The maximum number of items to display per page in a paginated query. | 10 |
| TaskId | string | No | The ID of the task to be queried. | d7b2acf8d362742123e4a84e1bf8**** |
| Type | string | No | The type of operation task to be queried:
| REPAIR |
| CheckId | long | No | The ID of the check item. Note
You can call the ListCheckResult API to obtain the check item ID.
| 76 |
| OperationTaskInstances | array<object> | No | The instance information of the operation tasks to be queried. | |
| object | No | |||
| Vendor | string | No | Cloud asset vendor. | ALIYUN |
| RegionId | string | No | The ID of the region where the instance is located. | cn-hangzhou |
| InstanceId | string | No | The instance ID of the server. | am-bp1vy2yaj1nvx**** |
| Statuses | array | No | A list of task statuses. Multiple statuses should be separated by commas (,). Values:
| |
| string | No | The status of the task. | REPAIRING | |
| Lang | string | No | Set the language type for the request and response messages. The default value is zh. Values:
| zh |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "3956048F-9D73-5EDB-834B-4827BB48****",
"OperationTasks": [
{
"RiskLevel": "high",
"CheckId": 3,
"RegionId": "cn-shenzhen",
"LastCheckTime": 1723173101000,
"Status": "REPAIRING",
"DealTime": 1723173101010,
"TaskId": "5bb1a313f9924b728b3c12e007c1****",
"RootTaskId": "01db51b0e5307bb703a22611c86f****",
"InstanceId": "i-wz9abo6wgjmh4yep****",
"Type": "REPAIR",
"CheckShowName": "checkShowName",
"StatusShowName": "Verified After Repair Success",
"RepairSupportType": 1,
"SupportRollBack": true,
"InstanceFreed": true,
"ErrorCode": "BackUpScriptError",
"ErrorMsg": "backUp script error"
}
],
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 149,
"Count": 20
}
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
| 500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
