Creates 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 ID of the bastion host instance. Note
You can call the DescribeInstances operation to query the bastion host instance ID. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
The region ID of the bastion host. Note
For more information about the mapping between region IDs and region names, see Regions and zones. |
cn-hangzhou |
| Name |
string |
Yes |
The 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 description of the audit policy. The description can be up to 500 characters in length. |
session |
| ScopeType |
integer |
Yes |
The type of the auditable asset scope rule. Valid values:
|
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| ReviewRuleId |
string |
The ID of the audit policy. |
1 |
| RequestId |
string |
The unique request ID generated by Alibaba Cloud for this request. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
Examples
Success response
JSON format
{
"ReviewRuleId": "1",
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.