Creates a hybrid cloud cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ehpc:CreateHybridCluster |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ZoneId |
string |
No |
The zone ID. |
cn-hangzhou-b |
| Name |
string |
Yes |
The name of the cluster. The name must be 2 to 64 characters in length, and can contain only Chinese characters, letters, digits, hyphens (-), and underscores (_). It must start with a letter or a Chinese character. |
hybridcluster |
| Description |
string |
No |
The description of the cluster. The description must be 2 to 256 characters in length, and cannot start with http:// or https://. Default value: empty. |
TestDescription |
| EhpcVersion |
string |
No |
The E-HPC version. By default, the latest version is used. |
1.0.0 |
| ClientVersion |
string |
No |
The client version of the cluster. By default, the latest version is used. |
1.0.64 |
| OsTag |
string |
Yes |
The tag of the operating system image. You can call the ListImages operation to query the tag. |
CentOS_7.2_64 |
| Domain |
string |
No |
The type of the domain account service. Valid values:
Default value: nis. |
nis |
| Location |
string |
No |
The location of the cluster. The location is fixed to hybrid cloud cluster. Set the value to OnPremise. |
OnPremise |
| SecurityGroupId |
string |
No |
The ID of the existing security group used to create the cluster. Note
If you specify this parameter, you cannot specify the |
sg-bp13n61xsydodfyg**** |
| SecurityGroupName |
string |
No |
The name of the new security group to be created if an existing security group is not used. Default policies are applied to the new security group. Note
If you specify this parameter, you cannot specify the |
ehpc-SecurityGroup |
| VpcId |
string |
Yes |
The ID of the virtual private cloud (VPC) to which the cluster belongs. |
vpc-b3f3edefefeep0760yju**** |
| VSwitchId |
string |
Yes |
The vSwitch ID. |
vsw-bp1lfcjbfb099rrjn**** |
| EcsOrder.Manager.InstanceType |
string |
No |
The instance type of the cloud management node in the hybrid cloud cluster. Currently, only the agent mode is supported. |
ecs.n1.tiny |
| EcsOrder.Compute.InstanceType |
string |
Yes |
The instance type of the compute node in the cluster. |
ecs.n1.tiny |
| VolumeType |
string |
No |
The type of the file system. Currently, only NAS is supported. |
NAS |
| VolumeId |
string |
No |
The storage instance ID. Currently, automatic creation of Alibaba Cloud NAS instances is not supported. |
008b64**** |
| VolumeProtocol |
string |
No |
The protocol type of the shared storage. Currently, only NFS is supported. |
NFS |
| VolumeMountpoint |
string |
No |
The VPC mount target of the NAS file system. Currently, automatic creation of Alibaba Cloud NAS mount targets is not supported. |
008b648bcb-s****.cn-hangzhou.nas.aliyuncs.com |
| RemoteDirectory |
string |
No |
The remote directory of the mounted file system. |
/RemoteDirectory |
| OnPremiseVolumeProtocol |
string |
No |
The protocol of the on-premises shared storage. Currently, only NFS is supported. |
NFS |
| OnPremiseVolumeMountPoint |
string |
No |
The mount target of the on-premises file system. |
RemoteNasDomain.com |
| OnPremiseVolumeRemotePath |
string |
No |
The mount path of the on-premises file system. |
/RemoteDirectory |
| OnPremiseVolumeLocalPath |
string |
No |
The path to which the on-premises file system is mounted on the cloud node. |
/OnCloudDirectory |
| Password |
string |
No |
The root password of the logon node. The password must be 8 to 30 characters in length and must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include:
Note
Use HTTPS to call the API operation to prevent password leaks. |
123**** |
| KeyPairName |
string |
No |
The name of the key pair. The name must be 2 to 128 characters in length and can contain letters and Chinese characters. It must start with a letter or a Chinese character, and cannot start with http:// or https://. It can contain digits, colons (:), underscores (_), and hyphens (-). Note
For more information about how to use the ECS key pair feature, see Create a key pair. |
test |
| JobQueue |
string |
No |
The queue to which scale-out nodes are added by default. |
workq |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfmxazb4ph**** |
| HybridClusterOpMode |
string |
No |
The mode in which the proxy node manages on-premises nodes. Valid values:
|
SSH |
| SchedulerPreInstall |
boolean |
No |
Specifies whether the scheduler is pre-installed in the business image. Valid values:
|
true |
| ComputeSpotStrategy |
string |
No |
The spot strategy for the compute node. Valid values:
Default value: NoSpot. |
NoSpot |
| ComputeSpotPriceLimit |
number |
No |
The maximum hourly price of the ECS instance under the compute node. The value can be accurate to three decimal places. This parameter takes effect only when the ComputeSpotStrategy parameter is set to SpotWithPriceLimit. |
0.034 |
| ImageOwnerAlias |
string |
No |
The image type. Valid values:
|
system |
| ImageId |
string |
No |
The image ID. |
wi_1607_x64_dtc_zh_40G_alibase**** |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see Ensure idempotence. |
123e4567-e89b-12d3-a456-426655440000 |
| MultiOs |
boolean |
No |
Specifies whether the cluster supports multiple operating systems. Valid values:
Default value: false. |
false |
| Nodes |
array<object> |
No |
The information about the on-premises cluster nodes. |
|
|
object |
No |
The array of node information. |
||
| SchedulerType |
string |
No |
The scheduler type of the on-premises cluster node. Valid values:
Default value: pbs. |
pbs |
| IpAddress |
string |
No |
The IP address of the on-premises cluster node. |
00b648b**** |
| HostName |
string |
No |
The hostname of the on-premises cluster node. |
test1 |
| Role |
string |
No |
The role of the on-premises cluster node. Valid values:
|
Compute |
| AccountType |
string |
No |
The domain account service type of the on-premises cluster node. Valid values:
Default value: nis. |
nis |
| Dir |
string |
No |
The configuration directory of the on-premises cluster node. |
/opt/sge/default/ |
| Application |
array<object> |
No |
The list of application software information. |
|
|
object |
No |
The tag information of the application software. You can bind up to 5 tags. |
||
| Tag |
string |
No |
The tag of the application software. |
OpenMPI_11.1 |
| PostInstallScript |
array<object> |
No |
The list of post-installation script information. |
|
|
object |
No |
The post-installation script information. You can configure up to 16 post-installation scripts. |
||
| Args |
string |
No |
The execution parameters of the post-installation script. |
bash file.sh |
| Url |
string |
No |
The full path of the post-installation script. |
/opt/job.sh |
| Plugin |
string |
No |
The plug-in mode configuration. This parameter takes effect only when SchedulerType is set to custom. The format is a JSON string that contains the pluginMod, pluginLocalPath, and pluginOssPath parameters. The parameter descriptions are as follows:
|
{"pluginMod": "oss","pluginLocalPath": "/opt/plugin","pluginOssPath": "https://bucket.oss-cn-hangzhou.aliyuncs.com/plugin/plugin.tgz"} |
| OpenldapPar |
object |
No |
The parameters for connecting to the OpenLDAP server. |
|
| LdapServerIp |
string |
No |
The IP address of the LDAP server. |
192.168.1.2 |
| BaseDn |
string |
No |
The BaseDN of the LDAP server. |
ehpctest |
| FallbackHomeDir |
string |
No |
The home directory of the Linux server. |
/home |
| WinAdPar |
object |
No |
The parameters for connecting to the Windows AD server. |
|
| AdUser |
string |
No |
The AD user. |
Administrator |
| AdUserPasswd |
string |
No |
The password of the AD user. |
xxxxxx |
| AdDc |
string |
No |
The name of the AD domain. |
ad-hybrid001.ehpcad.com |
| AdIp |
string |
No |
The IP address of the AD domain. |
192.168.1.2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
F6757FA4-8FED-4602-B7F5-3550C0842122 |
| TaskId |
string |
The task ID. |
F6757FA4-8FED-4602-B7F5-3550C0842122 |
| ClusterId |
string |
The cluster ID. |
ehpc-hz-FYUr32**** |
Examples
Success response
JSON format
{
"RequestId": "F6757FA4-8FED-4602-B7F5-3550C0842122",
"TaskId": "F6757FA4-8FED-4602-B7F5-3550C0842122",
"ClusterId": "ehpc-hz-FYUr32****"
}
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 |
| 400 | InDebt | Your account has overdue payments. | Your account has overdue payments. |
| 400 | OrderError.InsufficientBalance | The account balance is insufficient. Please add funds first and try again. | Your account has overdue payments. Add funds to your account and try again. |
| 400 | OrderError.InstHasUnpaidOrder | Your account has an unpaid order. | Your account has an unpaid order. Please pay the order and try again. |
| 400 | OrderError.Arrearage | Your 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. |
| 400 | OrderError.NoCard | No credit card is bound to your account. | You have not bound a card. Please perform binding first. |
| 400 | OrderError.InvalidPayMethod | No valid default payment method is specified for your account. | No valid payment method is found. Please check again. |
| 400 | OrderError.NoRealNameAuthentication | You have not completed the real name authentication. | You must complete the real-name verification first. |
| 400 | OrderError.NoRealNameRegistration | Real 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. |
| 400 | OrderError.UserProfileIncomplete | You have not completed your user profile. | The user has not completed personal information on the international site. |
| 400 | InvalidVpc | The specified VPC is invalid. | The VPC information is invalid. |
| 400 | InvalidVolume | The specified volume is invalid. | The specified volume is invalid. |
| 400 | InvalidSoftware | The specified software is not supported. | The requested software is not supported. |
| 400 | InvalidVolumeProtocal | The specified volume protocol is invalid. | The storage protocol is invalid. |
| 400 | InvalidVolumeMountpoint | The specified volume mount point is invalid. | The specified volume mount point is invalid. |
| 500 | UnknownError | An unknown error occurred. | An unknown error occurred. |
| 403 | TooManyClusters | The 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. |
| 403 | TooManyComputes | The number of computing nodes exceeds the quota. | The number of computing nodes exceeds the quota. |
| 403 | TooManyLogins | The maximum number of logged on nodes is exceeded. | The maximum number of logged on nodes is exceeded. The default maximum value is 2. |
| 403 | TooManyScc | The maximum number of SCC instances is exceeded. | The maximum number of SCC instances is exceeded. The default maximum value is 15. |
| 403 | QuotaExceeded.PrivateIpAddress | Insufficient private IP addresses in vSwitch: %s. | Insufficient private IP addresses in vSwitch: %s. |
| 403 | ConflictOpt | A conflicting operation is running. | A conflicting operation is running. Please try again later. |
| 403 | ImageNotSupported | The specified image is not supported. | The specified image does not exist. Change the image and try again. |
| 404 | ImageNotFound | The specified image does not exist. | The specified image does not exist. Please verify the parameter. |
| 404 | VolumeNotFound | The specified volume does not exist. | The specified storage does not exist. Please verify the parameter. |
| 404 | VpcNotFound | The specified VPC does not exist. | The specified VPC does not exist. |
| 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 | NasError | NAS API request failed. | Failed to request the NAS interface. |
| 406 | NasServiceNotOpen | The NAS service is not activated. | You have not activated NAS. |
| 406 | EipError | The EIP API request failed. | EIP API request failed. |
| 406 | OrderError | An order request error occurred. | An order request error occurred. |
| 406 | FailToGenId | Generating cluster ID failed. | |
| 406 | DbError | A database service error occurred. | Database request failed. |
| 406 | AliyunError | An Alibaba Cloud product error occurred. | Alibaba Cloud product error. %s |
| 407 | NotAuthorized | No authorization is granted. | No authorization is granted. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.