CreateCluster
Creates a Lingjun cluster.
Operation description
Closes a remote session.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eflo:CreateCluster |
create |
*Cluster
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterName |
string |
No |
The name of the cluster. |
Standard_Cluster |
| ClusterType |
string |
No |
The type of the cluster. Valid values:
|
Lite |
| ClusterDescription |
string |
No |
The description of the cluster. |
Standard cluster test |
| NodeGroups |
array<object> |
No |
The node groups. |
|
|
array<object> |
No |
The node group information. |
||
| FileSystemMountEnabled |
boolean |
No |
Specifies whether file system mounting is supported. |
false |
| HyperNodes |
array<object> |
No |
The hypernodes. |
|
|
array<object> |
No |
The hypernode information. |
||
| DataDisk |
array<object> |
No |
The data cloud disks. |
|
|
object |
No |
The data cloud disk information. |
||
| BurstingEnabled |
boolean |
No |
Specifies whether performance burst is enabled. |
true |
| Category |
string |
No |
The cloud disk category. Valid values:
|
cloud_essd |
| DeleteWithNode |
boolean |
No |
Specifies whether the data cloud disk is released when the node is unsubscribed. |
true |
| Device |
string |
No |
The device name of the data cloud disk. This parameter applies only to full image scenarios. You can use this parameter to set the device name of the data cloud disk to match the source data cloud disk in the full image and modify the attributes of the corresponding data cloud disk. For scaling that does not use a full image, the Device parameter is configured by the system by default. When you use a full image for scaling, take note of the following items:
|
/dev/xvdb |
| PerformanceLevel |
string |
No |
The performance level of the ESSD used as a data cloud disk. Valid values:
Default value: PL1. |
PL0 |
| ProvisionedIops |
integer |
No |
The provisioned read and write IOPS for a single ESSD AutoPL cloud disk. |
10000 |
| Size |
integer |
No |
The size of the cloud disk. Unit: GiB. |
180 |
| Hostname |
string |
No |
The hostname. |
q25b01265.cloud.ng152 |
| HyperNodeId |
string |
No |
The hypernode ID. |
e01-dw72u2c23jk |
| LoginPassword |
string |
No |
The logon password. |
aaadddddfdsfdsfsdffd |
| VSwitchId |
string |
No |
The vSwitch ID in the VPC. |
vsw-bp1xn9iq3s3p8218c4qu4 |
| VpcId |
string |
No |
The VPC ID. |
vpc-uf689skpx56nk7yfw0jhy |
| ImageId |
string |
No |
The system image ID. |
i190297201634099844192 |
| KeyPairName |
string |
No |
The name of the key pair. |
test-keypair |
| LoginPassword |
string |
No |
The logon password. |
Password |
| MachineType |
string |
No |
The machine type. |
efg1.nvga1 |
| NodeGroupDescription |
string |
No |
The node group description. |
Default node group |
| NodeGroupName |
string |
No |
The node group name. |
emr-default |
| Nodes |
array<object> |
No |
The nodes. |
|
|
array<object> |
No |
The nodes. |
||
| DataDisk |
array<object> |
No |
The data cloud disk specifications. |
|
|
object |
No |
The data cloud disk specification information. |
||
| BurstingEnabled |
boolean |
No |
Specifies whether performance burst is enabled. |
false |
| Category |
string |
No |
The type. |
cloud_essd |
| DeleteWithNode |
boolean |
No |
Specifies whether the data cloud disk is released when the node is unsubscribed. |
true |
| Device |
string |
No |
The device name of the data cloud disk. This parameter applies only to full image scenarios. You can use this parameter to set the device name of the data cloud disk to match the source data cloud disk in the full image and modify the attributes of the corresponding data cloud disk. For scaling that does not use a full image, the Device parameter is configured by the system by default. When you use a full image for scaling, take note of the following items:
|
/dev/xvdb |
| PerformanceLevel |
string |
No |
The performance metric parameter of the data cloud disk. |
PL0 |
| ProvisionedIops |
integer |
No |
The provisioned performance (IOPS). Valid values: 0 to 50,000. |
1000 |
| Size |
integer |
No |
The size of the cloud disk. |
10 |
| Hostname |
string |
No |
The hostname. |
8d13b784-17a9-11ed-bc7b-acde48001122 |
| LoginPassword |
string |
No |
The logon password. |
*** |
| NodeId |
string |
No |
The node ID. |
e01poc-cn-i7m2wnivf0d |
| VSwitchId |
string |
No |
The vSwitch ID. |
vsw-bp169pi5fj151rrms4sia |
| VpcId |
string |
No |
The VPC ID. |
vpc-0jlasms92fdxqd3wlf8ny |
| RamRoleName |
string |
No |
The name of the RAM role for the node. You can call the ListRoles operation of RAM to query the RAM roles that you have created. The trusted entity of the configured role must be Lingjun AI Computing Service. Note: You cannot clear an existing role. |
xianwen-test-ram-role |
| SystemDisk |
object |
No |
The system cloud disk information. |
|
| Category |
string |
No |
The cloud disk category. Valid values:
|
cloud_essd |
| PerformanceLevel |
string |
No |
The performance level of the ESSD used as a system cloud disk. Valid values:
|
PL1 |
| Size |
integer |
No |
The size of the system cloud disk. Unit: GB. |
9999 |
| UserData |
string |
No |
The custom executable shell script. The script must be Base64-encoded. The maximum size of the raw data is 16 KB. |
ZWNobyBoZWxsbyBlY3Mh |
| VirtualGpuEnabled |
boolean |
No |
Specifies whether GPU virtualization is enabled. |
false |
| ZoneId |
string |
No |
The zone ID. |
cn-hangzhou-i |
| IgnoreFailedNodeTasks |
boolean |
No |
Specifies whether failed nodes can be skipped. Default value: false. |
False |
| ResourceGroupId |
string |
No |
The resource group ID. Valid values:
|
rg-aek2xdkc6icwfha |
| Networks |
object |
No |
The network information. |
|
| IpAllocationPolicy |
array<object> |
No |
The IP allocation policy. |
|
|
array<object> |
No |
The IP allocation policy. |
||
| BondPolicy |
object |
No |
The bond policy. |
|
| BondDefaultSubnet |
string |
No |
The default bond cluster subnet. |
172.168.0.0/24 |
| Bonds |
array<object> |
No |
The bond information. |
|
|
object |
No |
The bond information. |
||
| Name |
string |
No |
The bond name. |
bond0 |
| Subnet |
string |
No |
The source cluster subnet for IP addresses. |
172.16.0.0/24 |
| MachineTypePolicy |
array<object> |
No |
The machine type allocation policy. |
|
|
array<object> |
No |
The machine type allocation policy. |
||
| Bonds |
array<object> |
No |
The bond information. |
|
|
object |
No |
The bond information. |
||
| Name |
string |
No |
The bond name. |
bond0 |
| Subnet |
string |
No |
The source cluster subnet for IP addresses. |
192.168.1.0/24 |
| MachineType |
string |
No |
The machine type. |
efg1.nvga8n |
| NodePolicy |
array<object> |
No |
The node allocation policy. |
|
|
array<object> |
No |
The node allocation policy. |
||
| Bonds |
array<object> |
No |
The bond information. |
|
|
object |
No |
The bond information. |
||
| Name |
string |
No |
The bond name. |
bond0 |
| Subnet |
string |
No |
The source cluster subnet for IP addresses. |
10.0.0.0/24 |
| NodeId |
string |
No |
The node ID. |
e01-cn-2r42vq62001 |
| NewVpdInfo |
object |
No |
The VPD configuration information. |
|
| CenId |
string |
No |
The Cloud Enterprise Network (CEN) ID. |
cen-1gb1eftc5qp2ao75fo |
| CloudLinkCidr |
string |
No |
The cloud link CIDR block. |
172.16.0.0/24 |
| CloudLinkId |
string |
No |
The cloud link ID. |
vcc-cn-c4dtycm5i08 |
| MonitorVpcId |
string |
No |
The virtual private cloud (VPC). |
vpc-0jl2x45apm6odc2c10h25 |
| MonitorVswitchId |
string |
No |
The vSwitch in the VPC. |
vsw-0jl2w3ffbghkss0x2foff |
| VpdCidr |
string |
No |
The cluster CIDR block. |
192.168.0.0/16 |
| VpdSubnets |
array<object> |
No |
The cluster subnets. |
|
|
object |
No |
The cluster subnets. |
||
| SubnetCidr |
string |
No |
The subnet CIDR block. |
10.0.1.8/24 |
| SubnetType |
string |
No |
The subnet type. |
10.0.2.8/24 |
| ZoneId |
string |
No |
The zone ID. |
cn-wulanchabu-b |
| SecurityGroupId |
string |
No |
The security group ID. |
sg-bp1d3dvbh9by7j5rujax |
| TailIpVersion |
string |
No |
The IP version. |
IPv4 |
| VSwitchId |
string |
No |
The vSwitch ID. |
vsw-asjdfklj |
| VSwitchZoneId |
string |
No |
The zone ID of the vSwitch. |
cn-shanghai-b |
| VpcId |
string |
No |
The VPC ID. |
vpc-0jl36lqzmc06qogy0t5ll |
| VpdInfo |
object |
No |
The reused VPD information. |
|
| VpdId |
string |
No |
The VPC ID. |
vpd-vfuz6ejv |
| VpdSubnets |
array |
No |
The list of cluster subnet IDs. |
|
|
string |
No |
The cluster subnet ID. |
subnet-jcloe1 |
|
| Tag |
array<object> |
No |
The resource tags. |
|
|
object |
No |
The list of tags. |
||
| Key |
string |
No |
The tag key. |
env-name |
| Value |
string |
No |
The tag value. |
dev |
| Components |
array<object> |
No |
The components (software instances). |
|
|
array<object> |
No |
The component type. |
||
| ComponentConfig |
object |
No |
The component configuration. |
|
| BasicArgs |
any |
No |
The basic parameters of the component. |
{ "EndpointPublicAccess": false, "ContainerCidr": "10.4.0.0/24", "KeyPair": "test", "NodeCidrMask": "25", "ResourceGroupId": "rg-axsadm3sdzsdvdsndstdisd", "WorkerSystemDiskCategory": "da", "WorkerSystemDiskSize": 40, "DeletionProtection": false, "KubeProxy": "iptables", "Name": "da", "LoadBalancerSpec": "slb.s1.small", "Runtime": { "Version": "19.03.15", "Name": "docker" }, "IsEnterpriseSecurityGroup": true, "Vpcid": "192.168.23.0/24", "NumOfNodes": 1, "VswitchIds": [ "dad" ], "ServiceCidr": "10.0.0.0/16", "SnatEntry": false, "kubernetesVersion": "1.20.11-aliyunedge.1", "WorkerInstanceTypes": [ "da" ] } |
| NodeUnits |
array |
No |
The node pool configuration, which is used to establish the mapping between node groups and node pools. Required when ComponentType is ACKEdge. Leave empty for other component types. |
|
|
any |
No |
The node pool configuration, which is used to establish the mapping between node groups and node pools. Required when ComponentType is ACKEdge. Leave empty for other component types. |
{ "Options": {}, "Type": "edge", "ResourceGroupId": "rg-acfm2cdxm3zvnt4dsa1s1t65fi", "RelatedNodeGroups": [ "tes" ], "NodeUnitKey": "da", "MaxNodes": 30 } |
|
| ComponentType |
string |
No |
The component type. Valid values:
|
ACKEdge |
| HpnZone |
string |
No |
The cluster ID. Valid values:
|
A1 |
| NimizVSwitches |
array |
No |
The node vSwitches. |
|
|
string |
No |
The node vSwitch ID. |
vsw-0jlx7dkziyhgf6klwnsi3 |
|
| OpenEniJumboFrame |
boolean |
No |
Specifies whether the network interface supports jumbo frames. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| ClusterId |
string |
The cluster ID. |
i116913051663373010974 |
| RequestId |
string |
The request ID. |
3C683243-7915-57FB-9570-A2932C1C0F78 |
| TaskId |
string |
The task ID. |
i159809891662373011015 |
Examples
Success response
JSON format
{
"ClusterId": "i116913051663373010974",
"RequestId": "3C683243-7915-57FB-9570-A2932C1C0F78",
"TaskId": "i159809891662373011015"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.