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 |
Filters node pools created before this time. The value is a UNIX timestamp converted from the local time of the region (UTC+8 for the China site). |
1703820113 |
| TimeCreatedAfter |
integer |
No |
Filters node pools created after this time. The value is a UNIX timestamp converted from the local time of the region (UTC+8 for the China site). |
1703819914 |
| PageSize |
integer |
No |
The number of entries per page in a paged 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 paged 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 in the list. |
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 |
Indicates whether the resource pool is the default resource pool. Valid values:
|
true |
| MaxExecutorNum |
integer |
The number of executor nodes currently running in the resource pool. |
100 |
| SchedulingPolicyId |
string |
The scheduling policy ID. |
policy-xxx |
| CreateTime |
string |
The time when the resource pool was created. |
2026-04-20 11:09:59 |
| UpdateTime |
string |
The time when the resource pool was last updated. |
2026-04-20 11:09:59 |
| Tags |
array<object> |
||
|
object |
|||
| Key |
string |
TestKey |
|
| Value |
string |
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.