All Products
Search
Document Center

Elastic High Performance Computing:CreateCluster

Last Updated:May 27, 2025

Creates a pay-as-you-go or subscription Elastic High Performance Computing (E-HPC) cluster.

Operation description

Usage notes

Before you call this operation, make sure that you are familiar with the billing and pricing of E-HPC. For more information, see Overview .

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

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterNamestringNo

The cluster name. The name must be 1 to 128 characters in length and can contain letters, digits, hyphens (-), and underscores (_).

slurm22.05.8-cluster-20240718
ClusterDescriptionstringNo

The cluster description. The description must be 1 to 128 characters in length and can contain letters, digits, hyphens (-), and underscores (_).

slurm22.05.8-cluster-20240718
ClusterCategorystringNo

The cluster type. Valid values:

  • Standard
  • Serverless
Standard
ClusterVpcIdstringNo

The ID of the virtual private cloud (VPC) in which the cluster resides.

vpc-m5efjevmclc0xdmys****
ClusterVSwitchIdstringNo

The ID of the vSwitch that you want the cluster to use. The vSwitch must reside in the VPC that is specified by the ClusterVpcId parameter.

You can call the DescribeVpcs operation to query information about the created VPCs and vSwitches.

vsw-f8za5p0mwzgdu3wgx****
IsEnterpriseSecurityGroupbooleanNo

Specifies whether to use an advanced security group. Valid values:

  • true: automatically creates and uses an advanced security group.
  • false: automatically creates and uses a basic security group.

For more information, see Basic security groups and advanced security groups.

false
SecurityGroupIdstringNo

The ID of the security group to which the cluster belongs.

You can call the DescribeSecurityGroups operation to query available security groups in the current region.

sg-bp13n61xsydodfyg****
ClientVersionstringNo

The client version. By default, the latest version is used.

2.1.0
ClusterCustomConfigurationobjectNo

The post-processing script of the cluster.

ScriptstringNo

The URL that is used to download the post-processing script.

http://*****
ArgsstringNo

The runtime parameters of the script after the cluster is created.

E-HPC cn-hangzhou
ClusterCredentialsobjectNo

The access credentials of the cluster.

KeyPairNamestringNo

The name of the key pair. The name must be 2 to 128 characters in length. The name must start with a letter but cannot start with http:// or https://. The name can contain digits, letters, colons (:), underscores (_), and hyphens (-).

Note For more information, see Create a key pair.
ali0824
PasswordstringNo

The password for the root user to log on to the node. The password must be 8 to 20 characters in length, and must contain at least 3 of the following character types: uppercase letters, lowercase letters, digits, and special characters. The following special characters are supported: () ~ ! @ # $ % ^ & * - = + { } [ ] : ; ' < > , . ? /

Note We recommend that you use HTTPS to call the API operation to prevent password leakage.
**********
MaxCountintegerNo

The maximum number of compute nodes that the cluster can manage. Valid values: 0 to 5,000.

500
MaxCoreCountintegerNo

The maximum number of vCPUs that can be used by compute nodes in the cluster. Valid values: 0 to 100,000.

10000
DeletionProtectionbooleanNo

Specifies whether to enable deletion protection for the cluster. Deletion protection decides whether the cluster can be deleted in the console or by calling the DeleteCluster operation. Valid values:

  • true
  • false

Default value: false.

false
ResourceGroupIdstringNo

The ID of the resource group to which the cluster belongs.

You can call the ListResourceGroups operation to obtain the IDs of the resource groups.

rg-acfmxazb4******
Tagsarray<object>No

The tags of the cluster.

objectNo

The tag of the cluster.

KeystringNo

The tag key. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with acs: or aliyun. The tag key cannot contain http:// or https://.

ClusterId
ValuestringNo

The tag value. Valid values of N: 1 to 20. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot contain http:// or https://.

ehpc-hz-******
ManagerobjectNo

The configurations of the cluster management node.

SchedulerobjectNo

The configurations of the scheduler service.

TypestringNo

The scheduler type. Valid values:

  • SLURM
  • PBS
  • OPENGRIDSCHEDULER
  • LSF_PLUGIN
  • PBS_PLUGIN
SLURM
VersionstringNo

The scheduler version.

22.05.8
DirectoryServiceobjectNo

The configurations of the domain account service.

TypestringNo

The type of the domain account.

Valid values:

  • NIS
NIS
VersionstringNo

The version of the domain account service.

2.31
DNSobjectNo

The configurations of the domain name resolution service.

TypestringNo

The domain name resolution type.

Valid values:

  • NIS
NIS
VersionstringNo

The version of the domain name resolution service.

2.31
ManagerNodeNodeTemplateNo

The hardware configurations of the management node.

QueuesarrayNo

The queues in the cluster. The number of queues can be 0 to 8.

QueueTemplateNo

The queue configurations.

SharedStoragesarrayNo

The shared storage resources of the cluster.

SharedStorageTemplateNo

The detailed configurations of a shared storage resource.

AdditionalPackagesarray<object>No

The list of software that you want to install in the cluster. Valid values of N: 0 to 10.

objectNo

The information about a piece of software that you want to install in the cluster.

NamestringNo

The name of the software that you want to install in the cluster.

mpich
VersionstringNo

The version of the software that you want to install in the cluster.

4.0.3
Addonsarray<object>No

The configurations of the custom addons in the cluster. Only one addon is supported.

objectNo

The configurations of the custom addon in the cluster.

NamestringYes

The addon name.

Login
VersionstringYes

The addon version.

1.0
ServicesSpecstringNo

The service configurations of the addon.

"[{\\"ServiceName\\": \\"SSH\\", \\"ServiceAccessType\\": null, \\"ServiceAccessUrl\\": null, \\"NetworkACL\\": [{\\"IpProtocol\\": \\"TCP\\", \\"Port\\": 22, \\"SourceCidrIp\\": \\"0.0.0.0/0\\"}]}, {\\"ServiceName\\": \\"VNC\\", \\"ServiceAccessType\\": null, \\"ServiceAccessUrl\\": null, \\"NetworkACL\\": [{\\"IpProtocol\\": \\"TCP\\", \\"Port\\": 12016, \\"SourceCidrIp\\": \\"0.0.0.0/0\\"}]}, {\\"ServiceName\\": \\"CLIENT\\", \\"ServiceAccessType\\": \\"URL\\", \\"ServiceAccessUrl\\": \\"\\", \\"NetworkACL\\": [{\\"IpProtocol\\": \\"TCP\\", \\"Port\\": 12011, \\"SourceCidrIp\\": \\"0.0.0.0/0\\"}]}]"
ResourcesSpecstringNo

The resource configurations of the addon.

"{\\"EipResource\\": {\\"AutoCreate\\": true}, \\"EcsResources\\": [{\\"InstanceType\\": \\"ecs.c7.xlarge\\", \\"ImageId\\": \\"centos_7_6_x64_20G_alibase_20211130.vhd\\", \\"SystemDisk\\": {\\"Category\\": \\"cloud_essd\\", \\"Size\\": 40, \\"Level\\": \\"PL0\\"}, \\"EnableHT\\": true, \\"InstanceChargeType\\": \\"PostPaid\\", \\"SpotStrategy\\": \\"NoSpot\\"}]}"
ClusterModestringNo

The deployment mode of the cluster. Valid values:

  • Integrated
  • Hybrid
  • Custom
Integrated

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

Successboolean

The request result. Valid values:

  • true: The request was successful.
  • false: The request failed.
true
RequestIdstring

The request ID.

F6757FA4-8FED-4602-B7F5-3550C0******
ClusterIdstring

The cluster ID.

ehpc-hz-FYUr******
TaskIdstring

The task ID.

F6757FA4-8FED-4602-B7F5-3550C0******

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "RequestId": "F6757FA4-8FED-4602-B7F5-3550C0******",
  "ClusterId": "ehpc-hz-FYUr******",
  "TaskId": "F6757FA4-8FED-4602-B7F5-3550C0******\n"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParamsThe specified parameter %s is invalid.The specified parameter %s is invalid.
400OrderError.ArrearageYour account balance is less than CNY 100. Please add funds to your account and try again.Your account balance is less than CNY 100. Add funds to your account and try again.
400OrderError.InstHasUnpaidOrderYour account has an unpaid order.Your account has an unpaid order. Please pay the order and try again.
400OrderError.InsufficientBalanceThe account balance is insufficient. Please add funds first and try again.Your account has overdue payments. Add funds to your account and try again.
400OrderError.InvalidPayMethodNo valid default payment method is specified for your account.No valid payment method is found. Please check again.
400OrderError.NoCardNo credit card is bound to your account.You have not bound a card. Please perform binding first.
400OrderError.NoRealNameAuthenticationYou have not completed the real name authentication.You must complete the real-name verification first.
400OrderError.NoRealNameRegistrationReal name registration is required for instances launched in mainland China.To purchase cloud services in mainland China regions on the international site, the user must first complete real-name registration.
400OrderError.UserProfileIncompleteYou have not completed your user profile.The user has not completed personal information on the international site.
400Cluster.NotSupportedCurrent cluster does not support this operation.-
403ConflictOptA conflicting operation is running.A conflicting operation is running. Please try again later.
403TooManyClustersThe number of user clusters exceeds the quota.The number of user clusters exceeds the quota. By default, the number of user clusters cannot exceed three.
404KeyPairNotFoundThe specified KeyPair does not exist.-
404ImageNotFoundThe specified image does not exist.The specified image does not exist. Please verify the parameter.
406DbErrorA database service error occurred.Database request failed.
406OrderErrorAn order request error occurred.An order request 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
2025-04-11The Error code has changedView Change Details