Modifies the rule settings of Cloud Security Posture Management (CSPM).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ModifyCheckRule |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RuleId |
integer |
Yes |
The rule ID. Note
You can call the ListCheckRule operation to obtain this parameter. |
9000** |
| RuleType |
string |
No |
The rule type. Default value: WHITE. Valid values:
|
WHITE |
| AddInstanceList |
array<object> |
No |
The list of instances to add in this rule update. If no instances need to be added, you do not need to specify this parameter. |
|
|
object |
No |
|||
| RegionId |
string |
No |
The region ID of the asset. |
cn-shanghai |
| InstanceId |
string |
No |
The instance ID of the asset. |
i-wz9g8ljygfqs1ez3**** |
| DeleteInstanceList |
array<object> |
No |
The list of instances to delete in this rule update. If no instances need to be deleted, you do not need to specify this parameter. |
|
|
object |
No |
|||
| RegionId |
string |
No |
The region ID of the asset. |
cn-shanghai |
| InstanceId |
string |
No |
The instance ID of the asset. |
i-8vb0e8qdaj0yyxjo**** |
| Remark |
string |
No |
The remarks. |
testRemark |
| ScopeType |
string |
No |
The scope of the rule. Valid values:
|
INSTANCE |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
CD380235-A0B8-540D-A0D5-D6288446**** |
| RuleId |
string |
The rule ID. |
123 |
Examples
Success response
JSON format
{
"RequestId": "CD380235-A0B8-540D-A0D5-D6288446****",
"RuleId": "123"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.