CreateCluster

Updated at:

Creates a Lingjun cluster.

Operation description

Closes a remote session.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

eflo:CreateCluster

create

*Cluster

acs:eflo:{#regionId}:{#accountId}:cluster/*

  • eflo:ImageSource
  • eflo:ImageOwnerId
  • eflo:IsSystemDiskEncrypted
  • eflo:IsDiskEncrypted
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 :

    Lite

Lite

ClusterDescription

string

No

The description of the cluster.

Standard cluster test

NodeGroups

array<object>

No

The list of node groups. This parameter is actually required. If it is not provided, the API returns InvalidParameter (NodeGroups field required).

array<object>

No

The node group information.

SystemDisk

object

No

The system cloud disk information.

Category

string

No

The cloud disk category. Valid values:

  • cloud_essd: ESSD.

cloud_essd

Size

integer

No

The size of the system cloud disk. Unit: GB.

9999

PerformanceLevel

string

No

The performance level of the ESSD used as the system cloud disk. Valid values:

  • PL0: A single disk delivers up to 10,000 random read/write IOPS.

  • PL1: A single disk delivers up to 50,000 random read/write IOPS.

PL1

Encrypted

boolean

No

Specifies whether to encrypt the system cloud disk. Valid values:

  • true: Encrypts the system cloud disk.

  • false: Does not encrypt the system cloud disk.

Default value: false.

Important When you use a shared encrypted image to create a cloud disk based on an encrypted snapshot, you must specify the request parameter Encrypted=true for the cloud disk. This ensures that the created cloud disk uses the key of the shared party.
Note

System cloud disk encryption during instance creation is not supported in Hong Kong (China) Zone D and Singapore Zone A.

false

KMSKeyId

string

No

The KMS key ID of the system cloud disk.

If the Encrypted parameter is set to true and KMSKeyId is not specified, the default key is used for encryption, and the KMSKeyId value is returned after the instance is created.

  • If the cloud disk is created from an unshared encrypted snapshot, the encryption key used for the snapshot is used by default.

  • If the cloud disk is created from a shared encrypted snapshot, the service key is used by default.

  • If the cloud disk is created in a region where account-level default encryption for Block Storage is enabled, the specified account-level key is used by default.

  • In other cases, the service key is used by default.

3b424bd2-b120-4185-9665-84e9a312d91a

NodeGroupDescription

string

No

The description of the node group.

Default node group

KeyPairName

string

No

The name of the key pair. You must specify at least one of LoginPassword and KeyPairName. If neither is specified, the API returns InvalidParameter.

test-keypair

RamRoleName

string

No

The name of the Resource Access Management (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 specified role must be Lingjun Intelligent Computing. Note: You cannot clear an existing role.

xianwen-test-ram-role

FileSystemMountEnabled

boolean

No

Specifies whether file system mounting is supported.

false

NodeGroupName

string

No

The name of the node group.

emr-default

ZoneId

string

No

The zone ID.

cn-hangzhou-i

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 to enable GPU virtualization splitting.

false

MachineType

string

No

The machine type.

efg1.nvga1

ImageId

string

No

The system image ID.

i190297201634099844192

Nodes

array<object>

No

The list of nodes.

array<object>

No

The list of nodes.

DataDisk

array<object>

No

The data cloud disk specifications.

object

No

The data cloud disk specification information.

DeleteWithNode

boolean

No

Specifies whether to delete the data cloud disk when the node is unsubscribed.

true

Category

string

No

The disk category.

cloud_essd

Size

integer

No

The disk size.

10

PerformanceLevel

string

No

The performance parameter of the data cloud disk.

PL0

BurstingEnabled

boolean

No

Specifies whether to enable the burst (performance burst) feature.

false

ProvisionedIops

integer

No

The provisioned performance (IOPS). Valid values: 0 to 50000.

1000

Device

string

No

The device name of the data cloud disk. This parameter is used only in 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 properties of the corresponding data cloud disk. For non-full image scaling, the Device parameter is set by the system by default. When you use a full image for scaling:

  • Regardless of whether the data cloud disk parameters are explicitly set, the system restores the data cloud disks from the source image for the user. The content is consistent with the data cloud disks in the source image.

  • If data cloud disks are explicitly specified but the Device parameter is not set, additional empty data cloud disks are created. The quantity and properties are specified by the user's data cloud disk parameters.

  • If the Device parameter of the explicitly specified data cloud disk does not match the Device parameter of the source image data cloud disk, additional empty data cloud disks are created. The quantity and properties are specified by the user's data cloud disk parameters.

  • If multiple data cloud disks and their Device parameters are explicitly specified, but all Device parameters point to the same device of a single data cloud disk in the source image, only one of the user-specified data cloud disks matches and overwrites the source image data cloud disk by device. The other specified data cloud disks are silently discarded, and no additional empty data cloud disks are created.

  • If the Device parameter of the explicitly specified data cloud disk matches the Device parameter of the source image data cloud disk, no additional empty data cloud disks are created. The user-specified data cloud disks correspond one-to-one with the source image data cloud disks by device. If the Size of the user-specified data cloud disk is smaller than the Size of the source image data cloud disk, the system returns HTTP status code 417 and the error message: "Data disk Size can not be less than the image data disk snapshot size for Device '/dev/xvdb'".

  • The total number of data cloud disks mounted to the node (specified data cloud disks + data cloud disks restored from the image) cannot exceed 16 for standard cloud disk groups, and cannot exceed 4 when Cloud Paralleled File System (CPFS) is enabled.

/dev/xvdb

KMSKeyId

string

No

The KMS key ID of the data cloud disk.

If the Encrypted parameter is set to true and KMSKeyId is not specified, the default key is used for encryption, and the KMSKeyId value is returned after the instance is created.

  • If the cloud disk is created from an unshared encrypted snapshot, the encryption key used for the snapshot is used by default.

  • If the cloud disk is created from a shared encrypted snapshot, the service key is used by default.

  • If the cloud disk is created in a region where account-level default encryption for Block Storage is enabled, the specified account-level key is used by default.

  • In other cases, the service key is used by default.

3c0655ca-59c8-4878-ac02-e7fb93656504

Encrypted

boolean

No

Specifies whether to encrypt the data cloud disk. Valid values:

  • true: Encrypts the data cloud disk.

  • false: Does not encrypt the data cloud disk.

Default value: false.

Important When you use a shared encrypted image to create a cloud disk based on an encrypted snapshot, you must specify the request parameter Encrypted=true for the cloud disk. This ensures that the created cloud disk uses the key of the shared party.

false

VpcId

string

No

The virtual private cloud (VPC) ID.

vpc-0jlasms92fdxqd3wlf8ny

VSwitchId

string

No

The vSwitch ID.

vsw-bp169pi5fj151rrms4sia

NodeId

string

No

The node ID.

e01poc-cn-i7m2wnivf0d

Hostname

string

No

The hostname.

8d13b784-17a9-11ed-bc7b-acde48001122

LoginPassword

string

No

The logon password.

Demo****123!

HyperNodes

array<object>

No

The list of hypernodes.

array<object>

No

The hypernode information.

DataDisk

array<object>

No

The list of data cloud disks.

object

No

The data cloud disk information.

DeleteWithNode

boolean

No

Specifies whether to delete the data cloud disk when the node is unsubscribed.

true

Category

string

No

The cloud disk category. Valid values:

  • cloud_essd: ESSD.

cloud_essd

Size

integer

No

The disk size. Unit: GiB.

180

PerformanceLevel

string

No

The performance level of the ESSD used as the data cloud disk. Valid values:

  • PL0: A single disk delivers up to 10,000 random read/write IOPS.

  • PL1: A single disk delivers up to 50,000 random read/write IOPS.

  • PL2: A single disk delivers up to 100,000 random read/write IOPS.

  • PL3: A single disk delivers up to 1,000,000 random read/write IOPS.

Default value: PL1.

PL0

BurstingEnabled

boolean

No

Specifies whether to enable the burst (performance burst) feature.

true

ProvisionedIops

integer

No

The read/write IOPS of the provisioned performance for a single ESSD AutoPL cloud disk.

10000

Device

string

No

The device name of the data cloud disk. This parameter is used only in 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 properties of the corresponding data cloud disk. For non-full image scaling, the Device parameter is set by the system by default. When you use a full image for scaling:

  • Regardless of whether the data cloud disk parameters are explicitly set, the system restores the data cloud disks from the source image for the user. The content is consistent with the data cloud disks in the source image.

  • If data cloud disks are explicitly specified but the Device parameter is not set, additional empty data cloud disks are created. The quantity and properties are specified by the user's data cloud disk parameters.

  • If the Device parameter of the explicitly specified data cloud disk does not match the Device parameter of the source image data cloud disk, additional empty data cloud disks are created. The quantity and properties are specified by the user's data cloud disk parameters.

  • If multiple data cloud disks and their Device parameters are explicitly specified, but all Device parameters point to the same device of a single data cloud disk in the source image, only one of the user-specified data cloud disks matches and overwrites the source image data cloud disk by device. The other specified data cloud disks are silently discarded, and no additional empty data cloud disks are created.

  • If the Device parameter of the explicitly specified data cloud disk matches the Device parameter of the source image data cloud disk, no additional empty data cloud disks are created. The user-specified data cloud disks correspond one-to-one with the source image data cloud disks by device. If the Size of the user-specified data cloud disk is smaller than the Size of the source image data cloud disk, the system returns HTTP status code 417 and the error message: "Data disk Size can not be less than the image data disk snapshot size for Device '/dev/xvdb'".

  • The total number of data cloud disks mounted to the node (specified data cloud disks + data cloud disks restored from the image) cannot exceed 16 for standard cloud disk groups, and cannot exceed 4 when Cloud Paralleled File System (CPFS) is enabled.

/dev/xvdb

Encrypted

boolean

No

Specifies whether to encrypt the data cloud disk. Valid values:

  • true: Encrypts the data cloud disk.

  • false: Does not encrypt the data cloud disk.

Default value: false.

Important When you use a shared encrypted image to create a cloud disk based on an encrypted snapshot, you must specify the request parameter Encrypted=true for the cloud disk. This ensures that the created cloud disk uses the key of the shared party.

false

KMSKeyId

string

No

The KMS key ID of the data cloud disk.

If the Encrypted parameter is set to true and KMSKeyId is not specified, the default key is used for encryption, and the KMSKeyId value is returned after the instance is created.

  • If the cloud disk is created from an unshared encrypted snapshot, the encryption key used for the snapshot is used by default.

  • If the cloud disk is created from a shared encrypted snapshot, the service key is used by default.

  • If the cloud disk is created in a region where account-level default encryption for Block Storage is enabled, the specified account-level key is used by default.

  • In other cases, the service key is used by default.

57e27f4a-f60f-4e8f-bbae-6c042e9a5ed6

VpcId

string

No

The virtual private cloud (VPC) ID.

vpc-uf689skpx56nk7yfw0jhy

VSwitchId

string

No

The vSwitch ID in the VPC.

vsw-bp1xn9iq3s3p8218c4qu4

HyperNodeId

string

No

The hypernode ID.

e01-dw72u2c23jk

Hostname

string

No

The hostname.

q25b01265.cloud.ng152

LoginPassword

string

No

The logon password.

aaadddddfdsfdsfsdffd

LoginPassword

string

No

The logon password. You must specify at least one of LoginPassword and KeyPairName. If neither is specified, the API returns InvalidParameter.

Password

IgnoreFailedNodeTasks

boolean

No

Specifies whether to skip failed nodes. Default value: false.

False

ResourceGroupId

string

No

The resource group ID.

Valid values:

  • rg-acfm26zesdlqa2q :

    rg-acfm26zesdlqa2q

rg-aek2xdkc6icwfha

Networks

object

No

The network information.

NewVpdInfo

object

No

The VPD configuration information.

CenId

string

No

The CEN ID.

cen-1gb1eftc5qp2ao75fo

CloudLinkCidr

string

No

The CIDR block of the cloud link.

172.16.0.0/24

CloudLinkId

string

No

The cloud link ID.

vcc-cn-c4dtycm5i08

MonitorVpcId

string

No

The VPC ID.

vpc-0jl2x45apm6odc2c10h25

MonitorVswitchId

string

No

The vSwitch ID.

vsw-0jl2w3ffbghkss0x2foff

VpdCidr

string

No

The CIDR block of the cluster.

192.168.0.0/16

VpdSubnets

array<object>

No

The cluster subnets.

object

No

The cluster subnets.

SubnetCidr

string

No

The CIDR block of the subnet.

10.0.1.8/24

ZoneId

string

No

The zone ID.

cn-wulanchabu-b

SubnetType

string

No

The subnet type.

10.0.2.8/24

VpdInfo

object

No

The reused VPD information.

VpdId

string

No

The virtual private cloud (VPC) ID.

vpd-vfuz6ejv

VpdSubnets

array

No

The list of cluster subnet IDs. This parameter is required when you use VpdInfo to reuse an existing VPD. If you specify only VpdId and omit this parameter, the API returns InvalidParameter.

string

No

The cluster subnet ID.

subnet-jcloe1

IpAllocationPolicy

array<object>

No

The IP address allocation policy.

array<object>

No

The IP address allocation policy.

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.

Subnet

string

No

The source cluster subnet for IP addresses.

192.168.1.0/24

Name

string

No

The bond name.

bond0

MachineType

string

No

The machine type.

efg1.nvga8n

BondPolicy

object

No

The bond policy.

Bonds

array<object>

No

The bond information.

object

No

The bond information.

Subnet

string

No

The source cluster subnet for IP addresses.

172.16.0.0/24

Name

string

No

The bond name.

bond0

BondDefaultSubnet

string

No

The default cluster subnet for the bond.

172.168.0.0/24

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.

Subnet

string

No

The source cluster subnet for IP addresses.

10.0.0.0/24

Name

string

No

The bond name.

bond0

NodeId

string

No

The node ID.

e01-cn-2r42vq62001

SecurityGroupId

string

No

The security group ID.

sg-bp1d3dvbh9by7j5rujax

VSwitchZoneId

string

No

The zone ID of the vSwitch.

cn-shanghai-b

VpcId

string

No

The virtual private cloud (VPC) ID.

vpc-0jl36lqzmc06qogy0t5ll

VSwitchId

string

No

The vSwitch ID.

vsw-asjdfklj

TailIpVersion

string

No

The IP version.

IPv4

Tag

array<object>

No

The resource tags.

object

No

The list of tags.

Value

string

No

The tag value.

dev

Key

string

No

The tag key.

env-name

Components

array<object>

No

The components (software instances).

array<object>

No

The component type.

ComponentType

string

No

The component type.

Valid values:

  • ARMS :

    ARMS monitoring.

  • ACKEdge :

    ACK edge cluster.

ACKEdge

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. This parameter is required when ComponentType is set to ACKEdge. Leave this parameter empty for other component types.

any

No

The node pool configuration, which is used to establish the mapping between node groups and node pools. This parameter is required when ComponentType is set to ACKEdge. Leave this parameter empty for other component types.

{ "Options": {}, "Type": "edge", "ResourceGroupId": "rg-acfm2cdxm3zvnt4dsa1s1t65fi", "RelatedNodeGroups": [ "tes" ], "NodeUnitKey": "da", "MaxNodes": 30 }

HpnZone

string

No

The cluster number.

Valid values:

  • A1 :

    A1

A1

NimizVSwitches

array

No

The node vSwitches.

string

No

The ID of the node vSwitch.

vsw-0jlx7dkziyhgf6klwnsi3

OpenEniJumboFrame

boolean

No

Specifies whether the network interface supports jumbo frames.

false

Response elements

Element

Type

Description

Example

object

The response body parameters.

RequestId

string

The request ID.

3C683243-7915-57FB-9570-A2932C1C0F78

ClusterId

string

The cluster ID.

i116913051663373010974

TaskId

string

The task ID.

i159809891662373011015

Examples

Success response

JSON format

{
  "RequestId": "3C683243-7915-57FB-9570-A2932C1C0F78",
  "ClusterId": "i116913051663373010974",
  "TaskId": "i159809891662373011015"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.