edit-icon download-icon

InsertClusterRequest

Last Updated: Nov 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 the logical region (regionId is replaced by this parameter after it is set.)
clusterName String Yes Cluster name
clusterType Integer Yes Cluster type.Optional values: 1 (Swarm cluster); 2 (ECS cluster); 3 (Kubernetes cluster).
networkMode Integer Yes Network type.Optional values: 1 (classic network); 2 (VPC).
vpcId String No VPC IDThis parameter is required if networkMode is set to VPC.
oversoldFactor Integer No CPU overselling of the Docker cluster.Optional values: 2 (1:2); 4 (1:4); 8(1:8).

Response parameters

Parameter Type Description
Code Integer Code
Message String Message
Cluster Cluster Cluster entity that is created

Cluster

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