Queries the list of audit policies.
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 obtain the bastion host instance ID. |
bastionhost-cn-st220aw**** |
| 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 |
| NextToken |
string |
No |
The token for the paging query. Leave this parameter empty or do not specify it for the first request. |
4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs**** |
| MaxResults |
integer |
No |
The maximum number of audit policies to return per request. Valid values: 1 to 100. Default value: 20. |
20 |
| Keyword |
string |
No |
The name of the audit policy to query. Fuzzy match is supported. |
test |
| Skip |
integer |
No |
The number of entries to skip. Note
This parameter takes effect only when NextToken is empty. |
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| TotalCount |
integer |
The total number of audit policies returned. |
5 |
| NextToken |
string |
The token for the next request. Use this value for the NextToken request parameter in the next paging query. If this field is empty in the response, no more data is available. |
4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs**** |
| MaxResults |
integer |
The value of the MaxResults request parameter if a valid value was specified. Otherwise, the default value is returned. |
20 |
| RequestId |
string |
The unique request ID generated by Alibaba Cloud for this request. |
50177258-E817-4D2F-A5C6-3FD7BC4806E3 |
| ReviewRules |
array<object> |
The list of audit policies. |
|
|
object |
The audit policy information. |
||
| ReviewRuleId |
integer |
The audit policy ID. |
1 |
| RuleName |
string |
The audit policy name. |
rulename |
| Remark |
string |
The remarks of the audit policy. |
test |
| ScopeType |
integer |
The type of auditable asset scope specified in the audit policy. Valid values:
|
2 |
Examples
Success response
JSON format
{
"TotalCount": 5,
"NextToken": "4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs****",
"MaxResults": 20,
"RequestId": "50177258-E817-4D2F-A5C6-3FD7BC4806E3",
"ReviewRules": [
{
"ReviewRuleId": 1,
"RuleName": "rulename",
"Remark": "test",
"ScopeType": 2
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.