Modifies a baseline check policy.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:ModifyStrategy | update | *All Resources * |
| 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 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 |