Queries the list of project authorizations.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ListProjectAuthorizations |
list |
*Instance
|
None | None |
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 query 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 request token. Leave this parameter empty or set it to an empty string for the first request. |
4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs**** |
| MaxResults |
integer |
No |
The maximum number of project authorizations to return per request. Valid values: 1 to 100. Default value: 20. |
20 |
| Keyword |
string |
No |
The keyword for fuzzy search by project authorization name. |
name |
| 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 project authorizations returned. |
5 |
| NextToken |
string |
The token required for the next query when using cursor-based pagination. Note
Leave this parameter empty for the first query. For subsequent requests, set this parameter to the value of NextToken returned in the previous response. |
4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs**** |
| MaxResults |
integer |
The value passed in the MaxResults request parameter if a valid MaxResults parameter was specified. Otherwise, the default value is returned. |
20 |
| RequestId |
string |
The unique request ID generated by Alibaba Cloud for this request. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
| ProjectAuthorizations |
array<object> |
The list of project authorizations. |
|
|
object |
The list of project authorizations. |
||
| AuthorizationId |
integer |
The project authorization ID. |
1 |
| Name |
string |
The project authorization name. |
name |
| Description |
string |
The remarks of the project authorization. |
comment |
| ScopeType |
integer |
The scope of manageable assets associated with the authorization. Valid values:
|
1 |
Examples
Success response
JSON format
{
"TotalCount": 5,
"NextToken": "4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs****",
"MaxResults": 20,
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
"ProjectAuthorizations": [
{
"AuthorizationId": 1,
"Name": "name",
"Description": "comment",
"ScopeType": 1
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.