Submits a repair task of risk items detected in configuration assessment or rolls back a repair task that is executed.
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:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is 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:OperateCheck | create | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CheckId | long | Yes | The ID of the check item. Note
You can call the ListCheckResult operation to obtain the ID of the check item.
| 132 |
OperationTaskInstances | array<object> | No | The asset information required to submit the tasks for instances. | |
object | No | The structure of the asset information. | ||
Vendor | string | No | The service provider of the asset. Valid values:
| 7 |
RegionId | string | No | The region ID of the server. | cn-hangzhou |
InstanceId | string | No | The instance ID of the server. | i-uf6533m4vuo3oa33**** |
TaskId | string | No | The ID of the task that you want to roll back | 7d0b10e35e80c9e5ebac5f1054**** |
DimensionType | string | No | The dimension of the task that you want to submit. Valid values:
| CHECK_ID |
Type | string | Yes | The type of the task that you want to submit. Valid values:
| REPAIR |
RepairTempParam | array<object> | No | The temporary parameters required for the repair task. | |
object | No | |||
Name | string | No | The name of the temporary repair parameter. | IPPort |
Value | string | No | The value of the temporary repair parameter. | 192.168.1XX.1XX |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0C8487EF-50C2-54BB-8634-10F8C35D****",
"OperateCode": "AuthorizationExhaust",
"RootTaskId": "89f5d7813bd59dd237580a8664b3xxxx"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | RepairTaskConflict | Fix task conflicts. | Repair task conflicts. Check the submitted repair task. |
400 | RepairedParamNotCustomized.%s | The required repair parameter %s is not customized. | Repair required parameters are not customized. |
400 | ErrorParamFormat.%s | Parameter %s format is incorrectly filled in. | The specified format of the parameter is not satisfied. |
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.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-10 | The Error code has changed. The request parameters of the API has changed | View Change Details |