Submits a repair task of risk items detected in configuration assessment or rolls back a repair task that is executed.
Debugging
Authorization information
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 |
RelationKey | string | No | The key linked to cross-page selections during task submission. Note
You can call the CreateAssetSelectionConfig operation to query the associated key from the BusinessType field.
| CSPM_OPERATION_RELATION_KEY_173*** |
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 |