Modifies a baseline check policy.
Debugging
Authorization information
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 new interval of the baseline check. Valid values:
| 1 |
Name | string | Yes | The new name of the baseline check policy. | testStrategy |
CycleStartTime | string | No | The new time range during which the baseline check starts. Valid values:
Note
This parameter is deprecated.
| 18 |
RiskSubTypeName | string | Yes | The subtype of the baselines. You can call the DescribeRiskType operation to query the subtypes of baselines. | hc_exploit_redis |
Id | string | No | The ID of the baseline check policy. | 245 |
RiskCustomParams | string | No | The custom configurations of the baseline. The value of this parameter is in the JSON format and contains the following fields:
| [{"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 type of the baseline check policy. Valid values:
| common |
TargetType | string | Yes | The method that is used to apply the baseline check policy. Valid values:
| groupId |
StartTime | string | Yes | The time when the baseline check based on the baseline check policy starts. Specify the time in the hh:mm:ss format. | 00:01:00 |
EndTime | string | Yes | The time when the baseline check based on the baseline check policy ends. Specify the time in the hh:mm:ss format. | 05:00:00 |
Response parameters
Examples
Sample success responses
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 |
---|---|---|---|
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 |
---|---|---|
2023-08-10 | The internal configuration of the API is changed, but the call is not affected | View Change Details |