Modifies the asset groups to which a baseline check policy is applied.
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SourceIp | string | No | The source IP address of the request. | 192.168.XX.XX |
Type | string | Yes | The configuration type. Set the value to hc_strategy. | hc_strategy |
Config | string | Yes | The ID of the baseline check policy. The ID is returned after the policy is created. The value of this parameter is in the JSON format and contains the following field:
| {"strategyId":8070645} |
Target | string | Yes | The information about the asset group to which the policy is applied. The value of this parameter is in the JSON format and contains the following fields:
| [{"Target":"9273980","BindUuidCount":5320,"TargetType":"groupId","Flag":"del"},{"Target":"9677606","TargetType":"groupId","Flag":"del"},{"Target":"10121607","BindUuidCount":7,"TargetType":"groupId","Flag":"add"},{"Target":"10670708","BindUuidCount":2,"TargetType":"groupId","Flag":"del"},{"Target":"11246338","BindUuidCount":6,"TargetType":"groupId","Flag":"del"},{"Target":"11291161","BindUuidCount":13,"TargetType":"groupId","Flag":"del"}] |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0E147337-5B0B-5776-B0B6-D569DBA8F60F"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | -101 | %s %s | - |
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 |
---|