Modifies the servers to which a baseline check policy is applied.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ModifyStrategyTarget |
update |
*All Resource
|
None | None |
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, returned when the policy is created. Specify in JSON format with the following field:
|
{"strategyId":8070645} |
| Target |
string |
Yes |
The asset group to which the policy is applied. Specify in JSON format with 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 elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request, which is used to locate and troubleshoot issues. |
0E147337-5B0B-5776-B0B6-D569DBA8F60F |
Examples
Success response
JSON format
{
"RequestId": "0E147337-5B0B-5776-B0B6-D569DBA8F60F"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | -101 | %s %s | |
| 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.