Creates a registry and configuration center cluster, such as ZooKeeper or Nacos.
Operation description
Before using this operation, make sure that you fully understand the billing methods and pricing of Microservices Engine (MSE).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:CreateCluster |
create |
*Cluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PubNetworkFlow |
string |
No |
Valid when ConnectionType is set to Valid values: 0 to 5000. |
0 |
PubSlbSpecification
deprecated
|
string |
No |
No longer used. |
slb.s1.small |
DiskType
deprecated
|
string |
No |
No longer used. |
alicloud-disk-ssd |
| VpcId |
string |
No |
VPC ID。 |
vpc-bp1t50e045b5g7i3p**** |
| NetType |
string |
Yes |
The network type. Valid values:
|
privatenet |
| VSwitchId |
string |
No |
The vSwitch ID. |
vsw-bp17opt4v18sto39k**** |
| InstanceCount |
integer |
Yes |
The number of instance nodes. Valid values: 1 to 9. [Professional Edition]
|
3 |
| ClusterSpecification |
string |
Yes |
The engine specifications. Valid values: |
MSE_SC_2_4_60_c |
| ClusterVersion |
string |
Yes |
The cluster version. Valid values: |
NACOS_2_0_0 |
| ClusterType |
string |
Yes |
The cluster type, such as ZooKeeper or Nacos-Ans. |
Nacos-Ans |
| Region |
string |
No |
The region where the cluster resides. Valid values include but are not limited to:
|
cn-hangzhou |
PrivateSlbSpecification
deprecated
|
string |
No |
No longer used. |
slb.s1.small |
| ConnectionType |
string |
No |
The network access type. Valid values: |
slb |
| RequestPars |
string |
No |
The extended request parameters in JSON format. |
{} |
| MseVersion |
string |
No |
Required in most cases. Valid values:
Valid values:
|
mse_pro |
| InstanceName |
string |
No |
The custom name of the instance. |
tanshuyingtest001 |
| ResourceGroupId |
string |
No |
The resource group ID. For more information about resource groups, see View basic information of a resource group. |
rg-aekzcqmoay3dlyq |
| Tag |
array<object> |
No |
The list of tags to add. A maximum of 20 tags can be specified. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The tag key. |
env |
| Value |
string |
No |
The tag value. |
prd |
| ChargeType |
string |
No |
The billing method. Valid values: PREPAY (subscription) and POSTPAY (pay-as-you-go). This parameter is ignored for the Serverless Edition. Valid values:
|
POSTPAY |
| SecurityGroupType |
string |
No |
Valid when ConnectionType is set to |
enterprise |
| EipEnabled |
boolean |
No |
Valid when ConnectionType is set to Valid values:
|
|
| AcceptLanguage |
string |
No |
The language of the response. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
dc63-465d-8ef5-20dc18af**** |
| Message |
string |
The returned message. |
The request is processed successfully. |
| InstanceId |
string |
The instance ID. |
mse-cn-st21ri2**** |
| ErrorCode |
string |
The error code. |
mse-100-000 |
| OrderId |
string |
The order ID. |
20574710974**** |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "dc63-465d-8ef5-20dc18af****",
"Message": "The request is processed successfully.",
"InstanceId": "mse-cn-st21ri2****",
"ErrorCode": "mse-100-000",
"OrderId": "20574710974****",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.