Fixes baseline check risk items.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:FixCheckWarnings |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The IP address of the access source. |
165.225.XX.XX |
| Lang |
string |
No |
The language of the request and response. Valid values:
|
zh |
| RiskId |
integer |
No |
The ID of the risk item. Note
To query the check item information for a specified risk item and a specified server, you must provide the risk item ID. You can call the DescribeCheckWarningSummary operation to obtain the ID. |
10354 |
| CheckParams |
string |
Yes |
The parameters of the baseline check items to fix. The following parameters are included:
|
[{"checkId":8,"rules":[{"ruleId":"rule.ssh_Idle.interval","value":1,"paramList":[{"paramName":"range_val","value":"600"},{"paramName":"range_val","value":"600"}]},{"ruleId":"rule.ssh_Idle.count","value":1,"paramList":[{"paramName":"range_val","value":"3"}]}]}] |
| Uuids |
string |
No |
The unique ID of the asset instance to fix. You can call the DescribeWarningMachines operation to obtain the ID. |
75a417dda5f25edb5bed8f208a9a****,c7e10fd794262a1510d5648f9e5d**** |
| SnapshotName |
string |
No |
The name of the snapshot to create when performing the baseline fix operation. |
sas_fix_2024-12-04 |
| RetentionDays |
integer |
No |
The retention period of the snapshot to create when performing the baseline fix operation. Valid values: 1 to 365. Unit: days. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| BatchId |
integer |
The ID of the batch fix task for risk items. |
52370 |
| RequestId |
string |
The request ID. |
76C1D7FD-DB1E-45EA-B804-3FBD9A1DD9C0 |
Examples
Success response
JSON format
{
"BatchId": 52370,
"RequestId": "76C1D7FD-DB1E-45EA-B804-3FBD9A1DD9C0"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ConsoleError | The error message is %s %s. | |
| 400 | HCClientOffline | Client is offline. | |
| 400 | InvalidBind | Asset not bind. | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.