ListPools
Queries the list of resource pools.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ehpc:ListPools |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Filter |
object |
No |
The filter conditions for querying resource pools. |
|
| PoolName |
array |
No |
The list of resource pool names to query. |
["MyPool"] |
|
string |
No |
The resource pool name.
|
PoolTest |
|
| Status |
array |
No |
The list of resource pool statuses to query. |
["Working"] |
|
string |
No |
The resource pool status. Valid values:
|
Working |
|
| TimeCreatedBefore |
integer |
No |
The UNIX timestamp. Only resource pools created before the specified time are queried. The time is converted to a UNIX timestamp based on the time zone of the region where the resource pool resides. For regions in the Chinese mainland, the time zone is UTC+8. |
1703820113 |
| TimeCreatedAfter |
integer |
No |
The UNIX timestamp. Only resource pools created after the specified time are queried. The time is converted to a UNIX timestamp based on the time zone of the region where the resource pool resides. For regions in the Chinese mainland, the time zone is UTC+8. |
1703819914 |
| PageSize |
integer |
No |
The number of entries per page in a paging query. Maximum value: 50. Default value: 10. |
10 |
| PageNumber |
integer |
No |
The current page number. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
896D338C-E4F4-41EC-A154-D605E5DE**** |
| PageSize |
integer |
The number of entries per page in a paging query. Maximum value: 50. Default value: 10. |
10 |
| PageNumber |
integer |
The current page number. Default value: 1. |
1 |
| TotalCount |
integer |
The total number of entries. |
2 |
| PoolList |
array<object> |
The list of resource pools. |
|
|
array<object> |
The information about a single resource pool in the list. |
||
| PoolName |
string |
The resource pool name.
|
PoolTest |
| Status |
string |
The resource pool status. Valid values:
|
Working |
| Priority |
integer |
The priority of the resource pool.
|
1 |
| IsDefault |
boolean |
Specifies whether the resource pool is the default resource pool. Valid values:
|
true |
| MaxExecutorNum |
integer |
The number of running executor nodes in a resource pool. |
100 |
| SchedulingPolicyId |
string |
The ID of the scheduling policy. |
policy-xxx |
| CreateTime |
string |
The time when the resource pool was created. The time is in the YYYY-MM-DD HH:mm:ss format. |
2026-04-20 11:09:59 |
| UpdateTime |
string |
The time when the resource pool was updated. The time is in the YYYY-MM-DD HH:mm:ss format. |
2026-04-20 11:09:59 |
| Tags |
array<object> |
The tag information. |
|
|
object |
The tag information. |
||
| Key |
string |
The tag key. |
TestKey |
| Value |
string |
The tag value. |
TestValue |
Examples
Success response
JSON format
{
"RequestId": "896D338C-E4F4-41EC-A154-D605E5DE****",
"PageSize": 10,
"PageNumber": 1,
"TotalCount": 2,
"PoolList": [
{
"PoolName": "PoolTest",
"Status": "Working",
"Priority": 1,
"IsDefault": true,
"MaxExecutorNum": 100,
"SchedulingPolicyId": "policy-xxx",
"CreateTime": "2026-04-20 11:09:59",
"UpdateTime": "2026-04-20 11:09:59",
"Tags": [
{
"Key": "TestKey",
"Value": "TestValue"
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | The specified parameter %s is invalid. |
| 407 | NotAuthorized | No authorization is granted. | No authorization is granted. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.