Creates a project authorization.
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-5yd34ol020a |
| 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 |
| Name |
string |
Yes |
The authorization name. 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 authorization. The description can be up to 500 characters in length. |
Bastionhost demo |
| ScopeType |
integer |
Yes |
The scope of manageable assets associated with the authorization. Valid values:
|
2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| AuthorizationId |
string |
The project authorization ID. |
2 |
| RequestId |
string |
The unique request ID generated by Alibaba Cloud for this request. |
4F6C075F-FC86-476E-943B-097BD4E12948 |
Examples
Success response
JSON format
{
"AuthorizationId": "2",
"RequestId": "4F6C075F-FC86-476E-943B-097BD4E12948"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.