Queries the details of 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 obtain this parameter. |
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 |
| ReviewRuleId |
integer |
Yes |
The ID of the audit policy. Note
You can call the ListReviewRules operation to obtain this parameter. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| ReviewRule |
object |
The audit policy information. |
|
| ReviewRuleId |
string |
The ID of the audit policy. |
1 |
| ReviewRuleName |
string |
The name of the audit policy. |
name |
| Description |
string |
The description of the audit policy. |
rule |
| ScopeType |
integer |
The type of the auditable asset scope rule specified in the audit policy. Valid values:
|
2 |
| ProjectIds |
array |
The array of auditable project IDs specified in the audit policy. This parameter is valid only when the value of ScopeType is 2. |
|
|
integer |
The array of auditable project IDs. |
2,3 |
|
| Projects |
array<object> |
The auditable project information. |
|
|
object |
The project information. |
||
| ProjectId |
integer |
2 |
|
| Name |
string |
project1 |
|
| Description |
string |
comment |
|
| IsDefault |
boolean |
false |
|
| Principals |
array<object> |
The auditor information associated with the audit policy. |
|
|
object |
The auditor information associated with the audit policy. |
||
| PrincipalType |
string |
RamUser |
|
| PrincipalId |
string |
2061****5219 |
|
| PrincipalName |
string |
name |
|
| RequestId |
string |
The request ID generated by Alibaba Cloud for this request. |
81500666-d7f5-4143-8329-0223cc738105 |
Examples
Success response
JSON format
{
"ReviewRule": {
"ReviewRuleId": "1",
"ReviewRuleName": "name",
"Description": "rule",
"ScopeType": 2,
"ProjectIds": [
0
],
"Projects": [
{
"ProjectId": 2,
"Name": "project1",
"Description": "comment",
"IsDefault": false
}
],
"Principals": [
{
"PrincipalType": "RamUser",
"PrincipalId": "2061****5219",
"PrincipalName": "name"
}
]
},
"RequestId": "81500666-d7f5-4143-8329-0223cc738105"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.