Queries node information of a single cluster under a user account, grouped by queue.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ehpc:ListNodesByQueue |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
ehpc-hz-FYUr32**** |
| QueueName |
string |
Yes |
The queue name. |
workq |
| PageNumber |
integer |
No |
The page number to display. Minimum value: 1. |
1 |
| PageSize |
integer |
No |
The number of rows per page. Valid values: 1 to 50. Default value: 10. |
10 |
| Async |
boolean |
No |
Specifies whether to use asynchronous query. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
The number of entries on the current page. |
1 |
| RequestId |
string |
The request ID. |
B405FF19-2D5F-4489-A84C-BC15CC1B24BD |
| PageNumber |
integer |
The current page number. |
1 |
| TotalCount |
integer |
The total number of entries in the list. |
1 |
| Nodes |
object |
||
| NodeInfo |
array<object> |
The node list information. |
|
|
array<object> |
|||
| VpcId |
string |
The VPC ID. |
vpc-bp1gnu8br4ay7beb2w**** |
| Status |
string |
The node status. Valid values:
|
untracking |
| HtEnabled |
boolean |
Indicates whether Hyper-Threading (HT) is enabled. |
true |
| Expired |
boolean |
Indicates whether the subscription node has expired. The value is false for pay-as-you-go nodes. |
false |
| ImageOwnerAlias |
string |
The image type. Valid values:
|
system |
| LockReason |
string |
The reason why the node is locked. Valid values:
An empty string is returned by default. |
financial |
| HostName |
string |
The node name. |
compute0 |
| PublicIpAddress |
string |
The public IP address of the node. |
10.34.**.** |
| SpotStrategy |
string |
The bidding policy of the instance. Valid values:
|
NoSpot |
| CreatedByEhpc |
boolean |
Indicates whether the node is created by E-HPC. |
true |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| VSwitchId |
string |
The vSwitch ID. |
vsw-bp1e47optm9g58zcu**** |
| IpAddress |
string |
The private IP address of the node. |
172.168.**.** |
| ExpiredTime |
string |
The expiration time of the subscription node. The time follows the ISO 8601 standard in the UTC time zone. This field is empty for pay-as-you-go nodes. |
2020-09-18T13:24:29.000Z |
| Version |
string |
The client version used by the cluster. |
1.0.64 |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-b |
| AddTime |
string |
The time when the node was added to the cluster. The time follows the ISO 8601 standard in the UTC time zone. |
2019-09-18T13:24:29.000Z |
| ImageId |
string |
The image ID. |
centos_7_02_64_20G_alibase_20170818**** |
| Location |
string |
The location of the node. Valid values:
|
PublicCloud |
| Id |
string |
The node instance ID. |
i-bp13p7vlcb1uihfv**** |
| CreateMode |
string |
The node creation mode. Valid values:
|
manual |
| TotalResources |
object |
The total resources. |
|
| Gpu |
integer |
The total GPU resources. Unit: cards. |
0 |
| Cpu |
integer |
The total CPU resources. Unit: cores. |
1 |
| Memory |
integer |
The total memory resources. Unit: GB. |
1024 |
| UsedResources |
object |
The resource usage of compute nodes. An empty value is returned for other node types. |
|
| Gpu |
integer |
The total GPU resources. Unit: cards. |
0 |
| Cpu |
integer |
The total CPU resources. Unit: cores. |
1 |
| Memory |
integer |
The total memory resources. Unit: GB. |
1 |
| StateInSched |
string |
The node status as seen by the scheduler. The status varies depending on the scheduler. |
active |
Examples
Success response
JSON format
{
"PageSize": 1,
"RequestId": "B405FF19-2D5F-4489-A84C-BC15CC1B24BD",
"PageNumber": 1,
"TotalCount": 1,
"Nodes": {
"NodeInfo": [
{
"VpcId": "vpc-bp1gnu8br4ay7beb2w****",
"Status": "untracking",
"HtEnabled": true,
"Expired": false,
"ImageOwnerAlias": "system",
"LockReason": "financial",
"HostName": "compute0",
"PublicIpAddress": "10.34.**.**",
"SpotStrategy": "NoSpot",
"CreatedByEhpc": true,
"RegionId": "cn-hangzhou",
"VSwitchId": "vsw-bp1e47optm9g58zcu****",
"IpAddress": "172.168.**.**",
"ExpiredTime": "2020-09-18T13:24:29.000Z",
"Version": "1.0.64",
"ZoneId": "cn-hangzhou-b",
"AddTime": "2019-09-18T13:24:29.000Z",
"ImageId": "centos_7_02_64_20G_alibase_20170818****",
"Location": "PublicCloud",
"Id": "i-bp13p7vlcb1uihfv****",
"CreateMode": "manual",
"TotalResources": {
"Gpu": 0,
"Cpu": 1,
"Memory": 1024
},
"UsedResources": {
"Gpu": 0,
"Cpu": 1,
"Memory": 1
},
"StateInSched": "active"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | The specified parameter %s is invalid. |
| 400 | NotEnabled | You have not enabled this service | You have not enabled this service |
| 500 | UnknownError | An unknown error occurred. | An unknown error occurred. |
| 404 | ClusterNotFound | The specified cluster does not exist. | The specified instance does not exist. |
| 404 | ManagerNotFound | The manager nodes do not exist or their status is abnormal. | The manager nodes do not exist or their status is abnormal. |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | The request has failed due to a temporary failure of the server. |
| 406 | EcsError | An error occurred while calling the ECS API operation. | ECS API call error. %s |
| 406 | DbError | A database service error occurred. | Database request failed. |
| 406 | RedisError | A Redis service error occurred. | Redis request failed. |
| 406 | AgentError | The agent service request failed. | The cluster-side command failed to run. %s |
| 406 | AliyunError | An Alibaba Cloud product error occurred. | Alibaba Cloud product error. %s |
| 407 | NotAuthorized | You are not authorized by RAM for this request. | The request is not authorized by RAM. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.