Queries the list of projects that are not associated with an audit policy.
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 this parameter. |
bastionhost-cn-7mz2ve7h00a |
| 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 paging. 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 |
| ReviewRuleId |
integer |
Yes |
The ID of the audit policy. Note
You can invoke the ListReviewRules operation to obtain this parameter. |
1 |
| Keyword |
string |
No |
The name of the project to query. Fuzzy match is supported. |
test |
| 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. Use this value for the NextToken request parameter in the next request to perform paging. 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 specified. 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 information. |
|
|
object |
The project list information. |
||
| ProjectId |
integer |
The project ID. |
2 |
| Name |
string |
The project name. |
nwZ |
| 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": 10,
"NextToken": "4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs****",
"MaxResults": 20,
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
"Projects": [
{
"ProjectId": 2,
"Name": "nwZ",
"Description": "comment",
"IsDefault": false
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.