Modifies an audit policy.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID of the bastion host. Note
You can invoke the DescribeInstances operation to query this parameter. |
bastionhost-cn-wwo36qbv601 |
| RegionId |
string |
No |
The region ID of the bastion host. Note
For the mapping 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 query 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 auditable asset scope rule after modification. Valid values:
|
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The unique request ID generated by Alibaba Cloud for this 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.