Modifies an audit policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ModifyReviewRule |
update |
*Instance
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID of the Bastionhost instance. Note
You can call the DescribeInstances operation to obtain the instance ID. |
bastionhost-cn-wwo36qbv601 |
| RegionId |
string |
No |
The region ID of the Bastionhost instance. Note
For the mappings between region IDs and region names, see Regions and zones. |
cn-hangzhou |
| ReviewRuleId |
integer |
Yes |
The ID of the audit policy. Note
You can invoke the ListReviewRules operation to obtain this parameter. |
1 |
| Name |
string |
No |
The new name of the audit policy. The name must be 1 to 128 characters in length. It cannot start with a special character and can contain only the following special characters: periods (.), underscores (_), hyphens (-), backslashes (), and spaces. |
name |
| Description |
string |
No |
The new description of the audit policy. The description can be up to 500 characters in length. |
demo |
| ScopeType |
integer |
No |
The type of the asset scope rule for auditable assets. Valid values:
Valid values:
|
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
7E68165E-1191-5CC2-B54B-5EF7390A5400 |
Examples
Success response
JSON format
{
"RequestId": "7E68165E-1191-5CC2-B54B-5EF7390A5400"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.