Associates auditors with 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 obtain the bastion host instance ID. |
bastionhost-cn-7mz2ve7h00a |
| 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 |
| Principals |
array<object> |
No |
The information about the auditors associated with the audit policy. |
|
|
object |
No |
The information about the auditors associated with the audit policy. |
||
| PrincipalType |
string |
No |
The type of the auditor to associate. Valid values:
|
RamUser |
| PrincipalId |
string |
No |
When PrincipalType is set to RamUser, specify the RAM user ID of the auditor to associate. When PrincipalType is set to RamRole, specify the RAM role ARN of the auditor to associate. |
160****9214 |
| PrincipalName |
string |
No |
The display name of the associated auditor's RAM user or RAM role. |
name |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The unique request ID generated by Alibaba Cloud for this request. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
Examples
Success response
JSON format
{
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.