Queries the list of projects that are not associated with 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 ID of the bastion host instance. Note
You can call the DescribeInstances operation to obtain the bastion host instance ID. |
bastionhost_std_intl-sg-uq833e2dz02 |
| 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 paging token. Leave this parameter empty or do not specify this parameter 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 |
| AuthorizationId |
integer |
Yes |
The project authorization ID. Note
You can call the ListProjectAuthorizations operation to obtain this parameter. |
1 |
| Keyword |
string |
No |
The project name 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. |
2 |
| NextToken |
string |
The token for the next paging request. Pass this value to the NextToken request parameter for the next request. If this field is empty in the response, no more data is available. |
4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs**** |
| MaxResults |
integer |
If a valid MaxResults parameter was passed in the request parameter, the value that was passed is returned. Otherwise, the default value is returned. |
20 |
| RequestId |
string |
The request ID generated by Alibaba Cloud for this request. |
81500666-d7f5-4143-8329-0223cc738105 |
| Projects |
array<object> |
The project list. |
|
|
object |
The project information. |
||
| ProjectId |
integer |
The project ID. |
1 |
| Name |
string |
The project name. |
name |
| Description |
string |
The project description. |
comment |
| IsDefault |
boolean |
Indicates whether the project is the default project. Valid values:
|
false |
Examples
Success response
JSON format
{
"TotalCount": 2,
"NextToken": "4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs****",
"MaxResults": 20,
"RequestId": "81500666-d7f5-4143-8329-0223cc738105",
"Projects": [
{
"ProjectId": 1,
"Name": "name",
"Description": "comment",
"IsDefault": false
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.