CreateCluster

Updated at: 2025-03-06 05:41
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Create an MSE registration and configuration center instance

Operation description

Please ensure that you fully understand the billing method and pricing of the MSE (Microservice Engine) product before using this interface.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
OperationAccess levelResource typeCondition keyAssociated operation
mse:CreateClustercreate
*Cluster
acs:mse:{#regionId}:{#accountId}:instance/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ParameterTypeRequiredDescriptionExample
PubNetworkFlowstringNo

Valid when ConnectionType is slb. 0 indicates no public network access SLB creation, and values above 1 indicate a fixed bandwidth for public network access SLB; unit: Mbps.

Value range: 0~5000.

0
PubSlbSpecificationdeprecatedstringNo

No longer in use

slb.s1.small
DiskTypedeprecatedstringNo

No longer in use

alicloud-disk-ssd
VpcIdstringNo

VPC ID.

vpc-bp1t50e045b5g7i3p****
NetTypestringYes

Network type, with the following values:

  • privatenet: indicates a private network.
  • pubnet: indicates a public network.
privatenet
VSwitchIdstringNo

Switch ID.

vsw-bp17opt4v18sto39k****
InstanceCountintegerYes

Number of instance nodes, with a range limit of 1 to 9.

[Professional Edition]

  • The number of instances must be 3 or more and must be an odd number.

[Developer Edition]

  • The number of instances can only be 1.

[Serverless Edition]

Ignore this parameter.

3
ClusterSpecificationstringYes

Engine specifications, with the following values:

[Professional Edition]

  • MSE_SC_2_4_60_c: 2 cores, 4GB
  • MSE_SC_1_2_60_c: 1 core, 2GB
  • MSE_SC_4_8_60_c: 4 cores, 8GB
  • MSE_SC_8_16_60_c: 8 cores, 16GB
  • MSE_SC_16_32_60_c: 16 cores, 32GB

[Developer Edition]

  • MSE_SC_1_2_60_c: 1 core, 2GB
  • MSE_SC_2_4_60_c: 2 cores, 4GB

[Serverless Edition]

Ignore this parameter, or you can fill in MSE_SC_SERVERLESS.

MSE_SC_2_4_60_c
ClusterVersionstringYes

Cluster version, with the following values:

[Professional Edition]

  • NACOS_2_0_0: indicates Nacos 2.x.x version.
  • ZooKeeper_3_8_0: indicates ZooKeeper 3.8.x version.

[Developer Edition]

  • NACOS_2_0_0: indicates Nacos 2.x version.
  • ZooKeeper_3_8_0: indicates ZooKeeper 3.8.x version.

[Serverless Edition]

  • NACOS_2_0_0: indicates Nacos 2.x version.
  • ZooKeeper_3_8_0: indicates ZooKeeper 3.8.x version.
NACOS_2_0_0
ClusterTypestringYes

Cluster type, including ZooKeeper, Nacos-Ans.

Nacos-Ans
RegionstringYes

The region where the cluster is located, including but not limited to the following regions:

  • cn-hangzhou: Hangzhou
  • cn-beijing: Beijing
  • cn-shanghai: Shanghai
  • cn-zhangjiakou: Zhangjiakou
  • cn-shenzhen: Shenzhen
cn-hangzhou
PrivateSlbSpecificationdeprecatedstringNo

No longer in use

slb.s1.small
ConnectionTypestringNo

Network access type, slb or single_eni; some regions' Developer Edition only support the single_eni type.

slb
RequestParsstringNo

Extended request parameters, in JSON format.

{}
MseVersionstringNo

Required unless under special circumstances, with the following values:

  • mse_pro: indicates Professional Edition.
  • mse_dev: indicates Developer Edition.
  • mse_serverless: indicates Serverless Edition.
Enumeration Value:
  • mse_dev: 开发版.
  • mse_serverless: Serverless版.
  • mse_pro: 专业版.
mse_pro
InstanceNamestringNo

Custom instance name

tanshuyingtest001
ResourceGroupIdstringNo

Resource group ID. For more details about the resource group, see Basic Information of Resource Group.

rg-aekzcqmoay3dlyq
Tagarray<object>No

List of tags to be added. Contains up to 20 items.

objectNo

Tag.

KeystringNo

Tag key.

env
ValuestringNo

Tag value.

prd
ChargeTypestringNo

Billing method, including PREPAY (Subscription) and POSTPAY (Pay-As-You-Go).

This parameter is ignored for the Serverless edition.

Enumeration Value:
  • PREPAY: 包年包月.
  • POSTPAY: 按量付费.
POSTPAY
SecurityGroupTypestringNo

Valid when ConnectionType is single_eni, indicating the security group type of the instance.

Enumeration Value:
  • enterprise
  • normal
enterprise
EipEnabledbooleanNo

Valid when ConnectionType is single_eni, indicating whether to enable public network access (Elastic IP).

Enumeration Value:
  • true: true.
  • false: false.
AcceptLanguagestringNo

The language type of the returned information:

  • zh: Chinese
  • en: English
zh

Response parameters

ParameterTypeDescriptionExample
ParameterTypeDescriptionExample
object

String object.

RequestIdstring

Request ID.

dc63-465d-8ef5-20dc18af****
Messagestring

Return message.

The request is successfully processed.
InstanceIdstring

Instance ID.

mse-cn-st21ri2****
ErrorCodestring

Error code.

mse-100-000
OrderIdstring

Order ID.

20574710974****
Successboolean

Request result, with the following values:

  • true: Request succeeded.
  • false: Request failed.
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "dc63-465d-8ef5-20dc18af****",
  "Message": "The request is successfully processed.\n",
  "InstanceId": "mse-cn-st21ri2****",
  "ErrorCode": "mse-100-000",
  "OrderId": "20574710974****",
  "Success": true
}

Error codes

HTTP status codeError codeError messageDescription
HTTP status codeError codeError messageDescription
400IllegalRequestInvalid request:%sInvalid request: %s
400InvalidParameterParameter error:%sRequest parameter error: %s
403NoPermissionYou are not authorized to perform this operation:%sYou do not have the permission to use this interface:%s
404NotFoundNot found:%sThe resource does not exist:%s
500InternalErrorConsole error. Try again later:%sConsole error. Try again later: %s

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
Change timeSummary of changesOperation
2023-08-29The request parameters of the API has changedView Change Details
2023-05-09The request parameters of the API has changedView Change Details
2022-08-11The request parameters of the API has changedView Change Details
  • On this page (1)
  • Operation description
  • Debugging
  • Authorization information
  • Request parameters
  • Response parameters
  • Examples
  • Error codes
  • Change history
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare