All Products
Search
Document Center

Elastic High Performance Computing:ListNodesByQueue

Last Updated:Apr 09, 2024

Queries the node information of a single cluster within an Alibaba Cloud account by queue.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ehpc:ListNodesByQueueREAD
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdstringYes

The ID of the E-HPC cluster.

ehpc-hz-FYUr32****
QueueNamestringYes

The name of the queue.

workq
PageNumberintegerNo

The number of the page to return. Pages start from page 1.

1
PageSizeintegerNo

The number of entries to return on each page. Valid values: 1 to 50.

Default value: 10.

10
AsyncbooleanNo

Specifies whether to enable asynchronous query.

false

Response parameters

ParameterTypeDescriptionExample
object
PageSizeinteger

The number of entries returned per page.

1
RequestIdstring

The request ID.

B405FF19-2D5F-4489-A84C-BC15CC1B24BD
PageNumberinteger

The number of the returned page.

1
TotalCountinteger

The total number of returned entries.

1
Nodesobject []

The list of nodes.

VpcIdstring

The VPC ID of the node.

vpc-bp1gnu8br4ay7beb2w****
Statusstring

The status of the node. Valid values:

  • uninit: The node is not initialized.
  • init: The node is being initialized.
  • ready: The node is ready.
  • running: The cluster is running.
  • exception: An exception occurred on the node.
  • untracking: The node is not added to the cluster.
untracking
HtEnabledboolean

Indicates whether Hyper-Threading (HT) is enabled.

true
Expiredboolean

Indicates whether the subscription node has expired. If the node is a pay-as-you-go node, false is returned.

false
ImageOwnerAliasstring

The type of the image. Valid values:

  • system: public image
  • self: custom image
  • others: shared image
  • marketplace: Alibaba Cloud Marketplace image
system
LockReasonstring

The reason why the node is locked. Valid values:

  • financial: The instance is locked due to overdue payments.
  • security: The node is locked for security reasons.
  • recycling: The preemptible instance is locked and pending release.
  • dedicatedhostfinancial: The ECS instance is locked due to overdue payments of the dedicated host.

By default, an empty string is returned.

financial
HostNamestring

The node name.

compute0
PublicIpAddressstring

The public IP address of the node.

10.34.**.**
SpotStrategystring

The preemption policy of the instance. Valid values:

  • NoSpot: The instance is created as a pay-as-you-go instance.
  • SpotWithPriceLimit: The instance is created as a preemptible instance with a user-defined maximum hourly price.
  • SpotAsPriceGo: The instance is created as a preemptible instance for which the market price at the time of purchase is automatically used as the bid price.
NoSpot
CreatedByEhpcboolean

Indicates whether the node was created by using E-HPC.

true
RegionIdstring

The region ID.

cn-hangzhou
VSwitchIdstring

The vSwitch ID.

vsw-bp1e47optm9g58zcu****
IpAddressstring

The private IP address of the node.

172.168.**.**
ExpiredTimestring

The time when the subscription instance expires. If the node is a pay-as-you-go node, a null value is returned.

2020-09-18T13:24:29.000Z
Versionstring

The version of the E-HPC client.

1.0.64
ZoneIdstring

The zone ID of the node.

cn-hangzhou-b
AddTimestring

The time when the node was added to the cluster.

2019-09-18T13:24:29.000Z
ImageIdstring

The image ID.

centos_7_02_64_20G_alibase_20170818****
Locationstring

The location where the node is deployed. Valid values:

  • OnPremise: The cluster is deployed on a hybrid cloud.
  • PublicCloud: The cluster is deployed on a public cloud.
PublicCloud
Idstring

The ID of the instance.

i-bp13p7vlcb1uihfv****
CreateModestring

The mode in which the node is created. Valid values:

  • manual: The node is manually added.
  • autoscale: The node is automatically added.
manual
TotalResourcesobject

The number of all resources in the cluster.

Gpuinteger

The total number of GPU cards. Unit: cards.

0
Cpuinteger

The number of CPU cores. Unit: cores.

1
Memoryinteger

The memory capacity. Unit: GB.

1024
UsedResourcesobject

The usage of the compute nodes in the cluster. For other types of nodes, an empty value is returned.

Gpuinteger

The total number of GPU cards. Unit: cards.

0
Cpuinteger

The number of CPU cores. Unit: cores.

1
Memoryinteger

The memory capacity. Unit: GB.

1
StateInSchedstring

The status of the node displayed on the scheduler. The status varies with the scheduler.

active

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
400InvalidParamsThe specified parameter %s is invalid.The specified parameter %s is invalid.
400NotEnabledYou have not enabled this serviceYou have not enabled this service
404ClusterNotFoundThe specified cluster does not exist.The specified instance does not exist.
404ManagerNotFoundThe manager nodes do not exist or their status is abnormal.The manager nodes do not exist or their status is abnormal.
406EcsErrorAn error occurred while calling the ECS API operation.An error occurred while calling the ECS API operation.
406DbErrorA database service error occurred.Database request failed.
406RedisErrorA Redis service error occurred.Redis request failed.
406AgentErrorThe agent service request failed.-
406AliyunErrorAn Alibaba Cloud product error occurred.An Alibaba Cloud product error occurred.
407NotAuthorizedYou are not authorized by RAM for this request.The request is not authorized by RAM.
500UnknownErrorAn unknown error occurred.An unknown error occurred.
503ServiceUnavailableThe request has failed due to a temporary failure of the serverThe request has failed due to a temporary failure of the server.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2021-12-22The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 404
    delete Error Codes: 406
    delete Error Codes: 407
    delete Error Codes: 500
    delete Error Codes: 503
Output ParametersThe response structure of the API has changed.