Modifies a baseline check policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ModifyStrategy |
update |
*BaselineStrategy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the request. |
192.168.X.X |
| CycleDays |
string |
Yes |
The cycle of the baseline check. Valid values:
|
1 |
| Name |
string |
Yes |
The name of the baseline check policy. |
testStrategy |
| CycleStartTime |
string |
No |
The start time of the baseline check. Valid values:
Note
This parameter is deprecated. The value indicates the start hour of the daily check period, in hours. |
18 |
| RiskSubTypeName |
string |
Yes |
The subtype of the check item. You can call the DescribeRiskType operation to obtain the subtype. |
hc_exploit_redis |
| Id |
string |
No |
The ID of the baseline check policy. |
245 |
| RiskCustomParams |
string |
No |
The custom configuration of baseline check items. The value is in JSON format and contains the following parameters:
|
[{"typeName":"hc_centos_6_custom","checkDetails":[{"checkId":4,"rules":[{"ruleId":"pass_min_days_login_defs.must.cus","paramList":[{"paramName":"range_val","value":"7"}]}]}]}] |
| CustomType |
string |
Yes |
The policy type. Valid values:
|
common |
| TargetType |
string |
Yes |
The scan method of the policy. Valid values:
|
groupId |
| StartTime |
string |
Yes |
The start time of the policy execution. Format: hh:mm:ss. |
00:01:00 |
| EndTime |
string |
Yes |
The end time of the policy execution. Format: hh:mm:ss. |
05:00:00 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response for modifying a baseline check policy. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. Alibaba Cloud generates a unique ID for each request. You can use the ID to troubleshoot issues. |
8EFA2BD9-00CD-5D69-B6B0-4EE83EAF072E |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Result |
object |
The response result. |
|
| StrategyId |
integer |
The policy ID. |
8164239 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "8EFA2BD9-00CD-5D69-B6B0-4EE83EAF072E",
"Success": true,
"Result": {
"StrategyId": 8164239
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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.