Submits a remediation task for risky check items in cloud product configuration checks, or rolls back a remediation task that has been executed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:OperateCheck |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CheckId |
integer |
Yes |
The ID of the check item. Note
Call the ListCheckResult operation to obtain the check item ID. |
132 |
| OperationTaskInstances |
array<object> |
No |
The asset information required to submit instance tasks. |
|
|
object |
No |
The struct of the asset information. |
||
| Vendor |
string |
No |
The asset vendor. 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 task ID to roll back when performing a rollback task. |
7d0b10e35e80c9e5ebac5f1054**** |
| DimensionType |
string |
No |
The task dimension for the submitted operation task. Valid values:
Valid values:
|
CHECK_ID |
| Type |
string |
Yes |
The task type for the submitted task. Valid values:
|
REPAIR |
| RepairTempParam |
array<object> |
No |
The temporary parameters required for the remediation task. |
|
|
object |
No |
|||
| Name |
string |
No |
The name of the temporary remediation parameter. |
IPPort |
| Value |
string |
No |
The value of the temporary remediation parameter. |
192.168.1XX.1XX |
| RelationKey |
string |
No |
The relation key associated with cross-page selection when submitting the operation. Note
Call the CreateAssetSelectionConfig operation and use the BusinessType field to obtain the relation key. |
CSPM_OPERATION_RELATION_KEY_173*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
0C8487EF-50C2-54BB-8634-10F8C35D**** |
| OperateCode |
string |
The result code returned by the operation. Valid values:
|
AuthorizationExhaust |
| RootTaskId |
string |
The root task ID returned after the task is submitted. |
89f5d7813bd59dd237580a8664b3xxxx |
Examples
Success response
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. |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.