Lists projects that match the specified criteria.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
devs:ListProjects |
list |
*All Resource
|
None | None |
Request syntax
GET /2023-07-14/projects HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| labelSelector |
array |
No |
An array of label selectors to filter projects based on the |
|
|
string |
No |
A single filter condition in the |
templateName=spring-boot-v3 |
|
| pageNumber |
integer |
No |
The page number to return. Defaults to 1. |
1 |
| pageSize |
integer |
No |
The number of projects to return per page. The value must be between 1 and 100. Defaults to 100. |
100 |
| keyword |
string |
No |
A keyword for a case-insensitive fuzzy search on the |
spring-boot |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
A paginated result of the query. |
||
| pageNumber |
integer |
The returned page number. |
1 |
| pageSize |
integer |
The number of projects per page. |
100 |
| totalCount |
integer |
The total number of matching projects. |
1 |
| data |
array |
A list of projects. |
|
| Project |
A Project object. |
Examples
Success response
JSON format
{
"pageNumber": 1,
"pageSize": 100,
"totalCount": 1,
"data": [
{
"uid": "1455541096***548",
"kind": "Project",
"createdTime": "2021-11-19T09:34:38Z",
"name": "my-project",
"labels": {
"key": "key=value"
},
"description": "test-description",
"spec": {
"token": "9D72DE01-C732-49C0-8E85-FFD9D695436B"
},
"status": {
"services": [
{
"name": "my-service",
"type": "fc3"
}
],
"isDeleting": true
}
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.