Associates project authorization administrators.
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-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 |
| AuthorizationId |
integer |
Yes |
The project authorization ID. Note
You can call the ListProjectAuthorizations operation to query this parameter. |
2 |
| Principals |
array<object> |
No |
The information about the project administrators specified in the project authorization. |
|
|
object |
No |
The information about the project administrators specified in the project authorization. |
||
| PrincipalType |
string |
No |
The type of the project administrator. Valid values:
|
RamUser |
| PrincipalId |
string |
No |
When PrincipalType is set to RamUser, specify the ID of the RAM user to be designated as the project administrator. When PrincipalType is set to RamRole, specify the ARN of the RAM role to be designated as the project administrator. |
160****2519 |
| PrincipalName |
string |
No |
The display name of the RAM user or RAM role designated as the project administrator. |
name |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The unique request ID generated by Alibaba Cloud for this request. |
850FA4B4-5BD2-5269-903E-3B7E07E6C975 |
Examples
Success response
JSON format
{
"RequestId": "850FA4B4-5BD2-5269-903E-3B7E07E6C975"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.