Queries the list of projects that the current user can manage.
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 |
| NextToken |
string |
No |
The token for the paging query. Leave this parameter empty or do not specify this character for the first request. |
4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs**** |
| MaxResults |
integer |
No |
The maximum number of projects to return per request. Valid values: 1 to 100. Default value: 20. |
20 |
| Keyword |
string |
No |
The name of the project to query. Fuzzy match is supported. |
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 projects returned. |
10 |
| NextToken |
string |
The token for the next paging query. Specify this value in the NextToken request parameter for the next paging request. If this field is empty in the response, no more data is available. |
4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs**** |
| MaxResults |
integer |
The value of the MaxResults request parameter if a valid value was provided. Otherwise, the default value of this parameter is returned. |
20 |
| RequestId |
string |
The unique request ID generated by Alibaba Cloud for this request. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
| Projects |
array<object> |
The project list. |
|
|
object |
The project details. |
||
| ProjectId |
integer |
The project ID. |
2 |
| Name |
string |
The project name. |
name |
| Description |
string |
The project description. |
base |
| IsDefault |
boolean |
Indicates whether this is the default project. Valid values:
|
false |
Examples
Success response
JSON format
{
"TotalCount": 10,
"NextToken": "4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs****",
"MaxResults": 20,
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
"Projects": [
{
"ProjectId": 2,
"Name": "name",
"Description": "base",
"IsDefault": false
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.