Creates a Microservices Engine (MSE) instance, such as an MSE ZooKeeper instance or an MSE Nacos instance.
Operation description
Before you call this API operation, you must make sure that you fully understand the billing methods and pricing of MSE.
Debugging
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:
- The required resource types are displayed in bold characters.
- 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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
mse:CreateCluster | create | *Cluster acs:mse:{#regionId}:{#accountId}:instance/* |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PubNetworkFlow | string | No | This parameter is valid only if the ConnectionType parameter is set to Valid values: 0 to 5000. | 0 |
PubSlbSpecificationdeprecated | string | No | This parameter is obsolete. | slb.s1.small |
DiskTypedeprecated | string | No | This parameter is obsolete. | alicloud-disk-ssd |
VpcId | string | No | The ID of the virtual private cloud (VPC). | vpc-bp1t50e045b5g7i3p**** |
NetType | string | Yes | The network type of the MSE instance. Valid values:
| privatenet |
VSwitchId | string | No | The ID of the vSwitch. | vsw-bp17opt4v18sto39k**** |
InstanceCount | integer | Yes | The number of nodes in the instance. Valid values: 1 to 9. [Professional Edition]
[Developer Edition]
[Serverless Edition] Ignore this parameter. | 3 |
ClusterSpecification | string | Yes | The engine specifications. Valid values: [Professional Edition]
[Developer Edition]
[Serverless Edition] Ignore this parameter or set this parameter to | MSE_SC_2_4_60_c |
ClusterVersion | string | Yes | The engine version of the instance. Valid values: [Professional Edition]
[Developer Edition]
[Serverless Edition]
| NACOS_2_0_0 |
ClusterType | string | Yes | The type of the instance. Valid values: ZooKeeper and Nacos-Ans. | Nacos-Ans |
Region | string | Yes | The region where the instance resides. Examples:
| cn-hangzhou |
PrivateSlbSpecificationdeprecated | string | No | This parameter is obsolete. | slb.s1.small |
ConnectionType | string | No | The network connection type. Valid values: | slb |
RequestPars | string | No | The extended request parameters in the JSON format. | {} |
MseVersion | string | No | Configure this parameter unless otherwise specified. Valid values:
| mse_pro |
InstanceName | string | No | The custom name of the instance. | tanshuyingtest001 |
ResourceGroupId | string | No | The ID of the resource group. For the details of resource groups, see View basic information of a resource group. | rg-aekzcqmoay3dlyq |
Tag | array<object> | No | The tags to add to the resource. You can specify up to 20 tags. | |
object | No | The tags. | ||
Key | string | No | The key of tag N to add to the resource. | env |
Value | string | No | The value of tag N to add to the resource. | prd |
ChargeType | string | No | The billing method. Valid values: PREPAY and POSTPAY. Ignore this parameter for serverless instances. | POSTPAY |
SecurityGroupType | string | No | The type of the security group to which the instance belongs. This parameter is valid only if the ConnectionType parameter is set to Enumeration Value:
| enterprise |
EipEnabled | boolean | No | Specifies whether to enable elastic IP addresses. This parameter is valid only if the ConnectionType parameter is set to Valid values:
| |
AcceptLanguage | string | No | The language of the response. Valid values:
| zh |
Response parameters
Examples
Sample success responses
JSON
format
{
"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 code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
400 | InvalidParameter | Parameter error:%s | Request parameter error: %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 |
500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-08-29 | The request parameters of the API has changed | View Change Details |
2023-05-09 | The request parameters of the API has changed | View Change Details |
2022-08-11 | The request parameters of the API has changed | View Change Details |