edit-icon download-icon

InsertClusterRequest

Last Updated: Jan 16, 2018

Function

Creates a cluster.

Request URL

/pop/v5/resource/cluster

Request method

POST

Request parameters

Parameter Type Required? Description
logicalRegionId String No ID of a logical region (regionId is replaced by this parameter after it is set.)
clusterName String Yes Cluster name
clusterType Integer Yes Cluster type. Possible values: 1 (Swarm cluster); 2 (ECS cluster); 3 (Kubernetes cluster).
networkMode Integer Yes Network type. Possible values: 1 (classic network); 2 (VPC).
vpcId String No VPC ID. This parameter is required if networkMode is set to VPC.
oversoldFactor Integer No CPU overselling of the Docker cluster. Possible values: 2 (1:2); 4 (1:4); 8(1:8).

Response parameters

Parameter Type Description
Code Integer Response code
Message String Response message
Data List Cluster entity that is created

ClusterEntity

Parameter Type Description
ClusterId String Cluster ID
RegionId String ID of the logical region
UserId String Name of the administrator account
ClusterName String Cluster name
ClusterType Integer Cluster type. Possible values: 1 (Swarm cluster); 2 (ECS cluster); 3 (Kubernetes cluster).
OversoldFactor Integer CPU overselling of the Docker cluster. Possible values: 2 (1:2); 4 (1:4); 8 (1:8).
NetworkMode Integer Network type. Possible values: 1 (classic network); 2 (VPC).
VpcId String VPC ID
Thank you! We've received your feedback.