All Products
Search
Document Center

Elastic High Performance Computing:ListClusters

Last Updated:Jan 14, 2026

Queries all clusters of a user in each region.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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:ListClusterslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdsarrayNo

The cluster IDs. You can specify up to 20 IDs.

stringNo

The cluster ID.

ehpc-cn-wulanchabu-llsu******
ClusterNamesarrayNo

The cluster names. You can specify up to 20 names.

stringNo

The cluster name.

slurm22.05.8-cluster-20240802
PageNumberintegerNo

The page number of the page to return. Default value: 1.

1
PageSizeintegerNo

The number of entries per page. Valid values: 10 to 100. Default value: 10

10

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

TotalCountinteger

The total number of entries returned.

2
RequestIdstring

The request ID.

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

The page number of the returned page.

1
PageSizeinteger

The number of entries per page.

10
Clustersarray<object>

The list of clusters.

Clusterobject

The information about the cluster.

ClusterIdstring

The cluster ID.

ehpc-hz-VMKe******
ClusterNamestring

The cluster name.

slurm22.05.8-cluster-20240227
ClusterDescriptionstring

The cluster description.

Demo
ClusterCreateTimestring

The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.

2024-08-06T12:43:01.000Z
ClusterModifyTimestring

The time when the cluster was modified. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC. For more information, see ISO 8601.

2024-08-06T12:43:01.000Z
ClusterCategorystring

The cluster type. Valid values:

  • Standard
  • Serverless
Standard
ClusterStatusstring

The cluster state. Valid values:

  • uninit: The cluster is being installed.
  • creating: The cluster is being created.
  • initing: The cluster is being initialized.
  • running: The cluster is running.
  • Releasing: The cluster is being released.
  • stopping: The cluster is being stopped.
  • stopped: The cluster is stopped.
  • exception: The cluster has run into an exception.
  • pending: The cluster is waiting to be configured.
running
ClusterVpcIdstring

The ID of the virtual private cloud (VPC) used by the cluster.

vpc-m5efjevmclc0xdmys****
ClusterVSwitchIdstring

The ID of the vSwitch used by the cluster.

vsw-f8za5p0mwzgdu3wgx****
SecurityGroupIdstring

The ID of the security group used by the cluster.

sg-bp13n61xsydodfyg****
ClusterCustomConfigurationobject

The post-processing script used by the cluster.

Scriptstring

The link to the post-processing script.

https://xxxxx
Argsstring

The parameters of the post-processing script.

demo
MaxCountlong

The maximum number of compute nodes that can be managed by the cluster.

500
MaxCoreCountlong

The maximum total number of vCPUs used by the compute nodes that can be managed by the cluster.

10000
DeletionProtectionboolean

Indicates whether deletion protection is enabled for the cluster. Valid values:

  • true
  • false
true
ResourceGroupIdstring

The resource group ID.

rg-acfmxazb4ph****
Managerobject

The configurations of the cluster management node.

Schedulerobject

The configurations of the scheduler service.

Typestring

The scheduler type.

SLURM
Versionstring

The scheduler version.

22.05.8
DirectoryServiceobject

The configurations of the directory service.

Typestring

The type of the domain account.

NIS
Versionstring

The version of the domain account service.

2.31
DNSobject

The configurations of the domain name resolution service.

Typestring

The resolution type.

NIS
Versionstring

The version of the domain name resolution service.

2.31
EhpcVersionstring

The Elastic High Performance Computing (E-HPC) version.

2.0.0
Nodesobject

The node statistics of the cluster.

RunningCountsinteger

The number of running compute nodes.

1
AbnormalCountsinteger

The number of malfunctioning compute nodes.

0
CreatingCountsinteger

The number of compute nodes that are being created.

0
Usersobject

The user attribute information of the cluster.

SudoCountsinteger

The number of administrators.

2
NormalCountsinteger

The number of ordinary users.

2
AdditionalPackagesarray<object>

The information about installed software in the cluster.

AdditionalPackageInfosobject

The information about the software.

Namestring

The software name.

gromacs
Versionstring

The software version.

2024.1
Addonsarray<object>

The information about the addons in the cluster.

AddonInfoobject

The information about the addon.

Namestring

The addon name.

Login
Versionstring

The addon version.

1.0
Labelstring

The addon label.

AddonIdstring

The addon ID.

Login-1.0-W2g****
Descriptionstring

The addon description.

Statusstring

The addon state.

Running
ServicesSpecarray<object>

The information about the addon services.

ServiceInfoobject

The information about the service.

ServiceNamestring

The service name.

Web Portal
ServiceAccessTypestring

The service access type.

URL
ServiceAccessUrlstring

The service access URL.

https://47.96.xx.xx:12008
ResourcesSpecobject

The resource configurations of the addon.

EipInstanceIdstring

The Elastic IP Address (EIP) ID.

eip-bp1vi9124tbx1g3kr****
EcsInstanceIdstring

The instance ID.

i-bp1bg85d2q6laic8****
ClusterUsedCoreTimefloat

The vCPU-hour usage of the cluster.

1000
ClusterModestring

The deployment type of the cluster. Valid values:

  • Integrated: public cloud
  • Hybrid: hybrid cloud
  • Custom: a custom cluster
Integrated
ClusterCredentialsarray

The logon credential type of the cluster. Valid values:

  • password: requires passwords for logons.
  • keypair: requires key pairs for logons.
CredentialInfostring

The credential type.

password

Examples

Sample success responses

JSONformat

{
  "TotalCount": 2,
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  "PageNumber": 1,
  "PageSize": 10,
  "Clusters": [
    {
      "ClusterId": "ehpc-hz-VMKe******",
      "ClusterName": "slurm22.05.8-cluster-20240227",
      "ClusterDescription": "Demo",
      "ClusterCreateTime": "2024-08-06T12:43:01.000Z",
      "ClusterModifyTime": "2024-08-06T12:43:01.000Z",
      "ClusterCategory": "Standard",
      "ClusterStatus": "running",
      "ClusterVpcId": "vpc-m5efjevmclc0xdmys****\n",
      "ClusterVSwitchId": "vsw-f8za5p0mwzgdu3wgx****\n",
      "SecurityGroupId": "sg-bp13n61xsydodfyg****\n",
      "ClusterCustomConfiguration": {
        "Script": "https://xxxxx",
        "Args": "demo"
      },
      "MaxCount": 500,
      "MaxCoreCount": 10000,
      "DeletionProtection": true,
      "ResourceGroupId": "rg-acfmxazb4ph****",
      "Manager": {
        "Scheduler": {
          "Type": "SLURM",
          "Version": "22.05.8\n"
        },
        "DirectoryService": {
          "Type": "NIS",
          "Version": 2.31
        },
        "DNS": {
          "Type": "NIS",
          "Version": 2.31
        }
      },
      "EhpcVersion": "2.0.0",
      "Nodes": {
        "RunningCounts": 1,
        "AbnormalCounts": 0,
        "CreatingCounts": 0
      },
      "Users": {
        "SudoCounts": 2,
        "NormalCounts": 2
      },
      "AdditionalPackages": [
        {
          "Name": "gromacs",
          "Version": 2024.1
        }
      ],
      "Addons": [
        {
          "Name": "Login",
          "Version": 1,
          "Label": "",
          "AddonId": "Login-1.0-W2g****\n",
          "Description": "",
          "Status": "Running\n",
          "ServicesSpec": [
            {
              "ServiceName": "Web Portal\n",
              "ServiceAccessType": "URL",
              "ServiceAccessUrl": "https://47.96.xx.xx:12008\n"
            }
          ],
          "ResourcesSpec": {
            "EipInstanceId": "eip-bp1vi9124tbx1g3kr****\n",
            "EcsInstanceId": "i-bp1bg85d2q6laic8****"
          }
        }
      ],
      "ClusterUsedCoreTime": 1000,
      "ClusterMode": "Integrated",
      "ClusterCredentials": [
        "password"
      ]
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
407NotAuthorizedYou are not authorized by RAM for this request.The request is not authorized by RAM.
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
No change history