All Products
Search
Document Center

Elastic High Performance Computing:ListClusters

Last Updated:Apr 09, 2024

Queries the list of clusters in all regions within an account.

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:ListClustersREAD
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
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

Response parameters

ParameterTypeDescriptionExample
object
PageSizeinteger

The number of entries returned per page.

1
RequestIdstring

The ID of the request.

04F0F334-1335-436C-A1D7-6C044FE73368
PageNumberinteger

The number of the returned page.

1
TotalCountinteger

The total number of returned entries.

1
Clustersobject []

The list of clusters.

VpcIdstring

The ID of the virtual private cloud (VPC).

vpc-b3f3edefefeep0760yju****
Statusstring

The status of the cluster. Valid values:

  • uninit: The cluster is not initialized.
  • creating: The cluster is being created.
  • init: The cluster is being initialized.
  • running: The cluster is running.
  • exception: The cluster encounters an exception.
  • releasing: The cluster is being released.
running
CreateTimestring

The time when the instance was created.

2020-10-30T07:39:20.000Z
IsComputeEssboolean

Indicates whether a scaling group was enabled. Valid values:

  • true: A scaling group is enabled.
  • false: No scaling group is enabled.
false
ComputeSpotStrategystring

The bidding method of the compute nodes. Valid values:

  • NoSpot: The instances of the compute node are pay-as-you-go instances.
  • SpotWithPriceLimit: The instances of the compute node are preemptible instances. These types of instances have a specified maximum hourly price.
  • SpotAsPriceGo: The instances of the compute node are preemptible instances. The price of these instances is based on the current market price.
NoSpot
AccountTypestring

The server type of the account. Valid values:

  • nis
  • ldap
nis
Countinteger

The number of compute nodes in the cluster.

3
EhpcVersionstring

The version of E-HPC.

1.0.0
Descriptionstring

The description of the cluster.

clusterdescription
BaseOsTagstring

The operating system tag of the base image. The tag was used only by the management node.

CentOS_7.2_64
Namestring

The name of the cluster.

test
ImageIdstring

The ID of the image.

wi_1607_x64_dtc_zh_40G_alibase****
ComputeSpotPriceLimitfloat

The maximum hourly price for the ECS instance under the compute node. The return value can be accurate to three decimal places.

0.034
SchedulerTypestring

The type of the scheduler. Valid values:

  • pbs
  • slurm
  • opengridscheduler
  • deadline
pbs
DeployModestring

The mode in which the cluster was deployed. Valid values:

  • Standard: An account node, a scheduling node, a logon node, and multiple compute nodes are separately deployed.
  • Advanced: Two high availability (HA) account nodes, two HA scheduler nodes, one logon node, and multiple compute nodes are separately deployed.
  • Simple: A management node, a logon node, and multiple compute nodes are deployed. The management node consists of an account node and a scheduling node. The logon node and compute nodes are separately deployed.
  • Tiny: A management node and multiple compute nodes are deployed. The management node consists of an account node, a scheduling node, and a logon node. The compute nodes are separately deployed.
Standard
NodeSuffixstring

The suffix of the node.

name
ImageOwnerAliasstring

The type of the image. Valid values:

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

The operating system tag of the image.

CentOS_7.2_64
NodePrefixstring

The prefix of the node.

test
InstanceTypestring

The instance type of the compute nodes.

ecs.n1.tiny
RegionIdstring

The ID of the region.

cn-hangzhou
InstanceChargeTypestring

The billing method of the nodes in the cluster. Valid values:

  • PostPaid: pay-as-you-go
  • PrePaid: subscription
PostPaid
VSwitchIdstring

The ID of the vSwitch.

vsw-bp1lfcjbfb099rrjn****
ZoneIdstring

The ID of the zone.

cn-hangzhou-c
LoginNodesstring

The list of logon nodes.

{"Id": "i-bp13x4is8pvdhws7e****"}
Idstring

The ID of the cluster.

ehpc-hz-jeJki6****
Locationstring

The location where the cluster was deployed. Valid values:

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

The version of the client.

1.0.64
ResourceGroupIdstring

The resource group ID.You can call the ListResourceGroups operation to query the IDs of resource groups.

rg-acfmxazb4ph****
Managersobject

The list of management nodes.

OperatingCountinteger

The number of nodes that are being used in the queue. This includes those that are being initialized, installed, or released.

1
ExceptionCountinteger

The number of abnormal nodes.

0
StoppedCountinteger

The number of stopped nodes.

0
Totalinteger

The total number of management nodes.

2
NormalCountinteger

The number of normal nodes.

1
Computesobject

The information about compute nodes.

OperatingCountinteger

The number of nodes that are being used in the queue. This includes those that are being initialized, installed, or released.

1
ExceptionCountinteger

The number of abnormal nodes.

0
StoppedCountinteger

The number of stopped nodes.

0
Totalinteger

The total number of nodes.

2
NormalCountinteger

The number of normal nodes.

1
TotalResourcesobject

The statistics of all resources in the cluster.

Gpuinteger

The number of GPU cards. Unit: cards.

0
Cpuinteger

The number of CPU cores. Unit: cores.

1
Memoryinteger

The memory size. Unit: MiB.

1024
UsedResourcesobject

The number of consumed resources in the cluster.

Gpuinteger

The number of GPU cards. Unit: cards.

0
Cpuinteger

The number of CPU cores. Unit: cores.

1
Memoryinteger

The memory size. Unit: MiB.

1024
HasPluginboolean

Indicates whether plug-ins were used in the cluster. Valid values:

  • true: Plug-ins are used.
  • false: Plug-ins are not used.

Default value: false

false

Examples

Sample success responses

JSONformat

{
  "PageSize": 1,
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  "PageNumber": 1,
  "TotalCount": 1,
  "Clusters": {
    "ClusterInfoSimple": [
      {
        "VpcId": "vpc-b3f3edefefeep0760yju****",
        "Status": "running",
        "CreateTime": "2020-10-30T07:39:20.000Z",
        "IsComputeEss": false,
        "ComputeSpotStrategy": "NoSpot",
        "AccountType": "nis",
        "Count": 3,
        "EhpcVersion": "1.0.0",
        "Description": "clusterdescription",
        "BaseOsTag": "CentOS_7.2_64",
        "Name": "test",
        "ImageId": "wi_1607_x64_dtc_zh_40G_alibase****",
        "ComputeSpotPriceLimit": 0.034,
        "SchedulerType": "pbs",
        "DeployMode": "Standard",
        "NodeSuffix": "name",
        "ImageOwnerAlias": "system",
        "OsTag": "CentOS_7.2_64",
        "NodePrefix": "test",
        "InstanceType": "ecs.n1.tiny",
        "RegionId": "cn-hangzhou",
        "InstanceChargeType": "PostPaid",
        "VSwitchId": "vsw-bp1lfcjbfb099rrjn****",
        "ZoneId": "cn-hangzhou-c",
        "LoginNodes": "{\"Id\": \"i-bp13x4is8pvdhws7e****\"}",
        "Id": "ehpc-hz-jeJki6****",
        "Location": "PublicCloud",
        "ClientVersion": "1.0.64",
        "ResourceGroupId": "rg-acfmxazb4ph****",
        "Managers": {
          "OperatingCount": 1,
          "ExceptionCount": 0,
          "StoppedCount": 0,
          "Total": 2,
          "NormalCount": 1
        },
        "Computes": {
          "OperatingCount": 1,
          "ExceptionCount": 0,
          "StoppedCount": 0,
          "Total": 2,
          "NormalCount": 1
        },
        "TotalResources": {
          "Gpu": 0,
          "Cpu": 1,
          "Memory": 1024
        },
        "UsedResources": {
          "Gpu": 0,
          "Cpu": 1,
          "Memory": 1024
        },
        "HasPlugin": false
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParamsThe specified parameter %s is invalid.The specified parameter %s is invalid.
404ImageNotFoundThe specified image does not exist.The specified image does not exist. Please verify the parameter.
406AgentErrorThe agent service request failed.-
406DbErrorA database service error occurred.Database request failed.
406AliyunErrorAn Alibaba Cloud product error occurred.An Alibaba Cloud product error occurred.
406EcsErrorAn error occurred while calling the ECS API operation.An error occurred while calling the ECS API operation.
407NotAuthorizedYou are not authorized by RAM for this request.The request is not authorized by RAM.
407EntityNotExist.RoleThe role does not exist.The role does not exist.
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
2023-04-21The 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.