Creates a Lindorm instance.
Operation description
Select at least one data engine when you create an instance. For example, to create an instance that uses LindormTable, specify both the LindormNum and LindormSpec parameters. For more information about data engines and storage specifications, see Select a data engine and Select storage specifications.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where you want to create the instance. To query the available regions, call the DescribeRegions operation. |
cn-shanghai |
| ZoneId |
string |
Yes |
The ID of the zone for the instance. |
cn-shanghai-f |
| InstanceAlias |
string |
No |
The name of the instance. |
lindorm_test |
| InstanceStorage |
string |
No |
The storage capacity of the instance. Unit: GB. |
480 |
| PayType |
string |
Yes |
The billing method of the instance. Valid values:
|
POSTPAY |
| VPCId |
string |
Yes |
The ID of the virtual private cloud (VPC) for the instance. |
vpc-bp1nme44gek34slfc**** |
| VSwitchId |
string |
Yes |
The ID of the vSwitch. |
vsw-bp1e7clcw529l773d**** |
| PricingCycle |
string |
No |
The unit of the subscription duration. Valid values:
Note
This parameter is available and required only when PayType is set to PREPAY. |
Month |
| Duration |
string |
No |
The subscription duration of the instance. Valid values:
Note
This parameter is available and required only when PayType is set to PREPAY. |
1 |
| DiskCategory |
string |
Yes |
The storage class of the instance. Valid values:
|
cloud_efficiency |
| CoreSpec |
string |
No |
The node specifications of the instance that uses local disks. If the storage class of the instance is local_ssd_pro, valid values for this parameter are as follows. The I3 instance family is available only for subscription instances.
If the storage class of the instance is local_hdd_pro, valid values for this parameter are:
|
lindorm.i2.xlarge |
| LindormNum |
integer |
No |
The number of LindormTable nodes in the instance. For a single-zone instance, the valid values are 0 to 90. This parameter is required if you create a multi-zone instance. For an instance that uses cloud disks, the valid values are 4 to 400. For an instance that uses local disks, the valid values are 6 to 400. |
2 |
| SolrSpec |
string |
No |
The node specifications for the search engine. Valid values:
|
lindorm.g.xlarge |
| SolrNum |
integer |
No |
The number of search engine nodes in the instance. Valid values: 0 to 60. |
2 |
| ColdStorage |
integer |
No |
The storage capacity of the capacity-optimized cloud storage for the instance. Unit: GB. If you do not specify this parameter, capacity-optimized cloud storage is not enabled for the instance. Valid values: 800 to 1000000. |
800 |
| TsdbSpec |
string |
No |
The node specifications for LindormTSDB. Valid values:
|
lindorm.g.xlarge |
| TsdbNum |
integer |
No |
The number of LindormTSDB nodes in the instance. Valid values:
|
2 |
| LindormSpec |
string |
No |
The node specifications for LindormTable. Valid values:
|
lindorm.c.xlarge |
| FilestoreNum |
integer |
No |
The number of file engine nodes in the instance. Valid values:
|
2 |
| FilestoreSpec |
string |
No |
The node specifications for the file engine. Valid values:
|
lindorm.c.xlarge |
| StreamNum |
integer |
No |
The number of stream engine nodes in the instance. Valid values: 0 to 60. |
2 |
| StreamSpec |
string |
No |
The node specifications for the stream engine. Valid values:
|
lindorm.g.xlarge |
| ArchVersion |
string |
No |
The deployment architecture. Valid values:
The default value is 1.0. To create a multi-zone instance, set this parameter to 2.0. This parameter is required if you want to create a multi-zone instance. |
2.0 |
| PrimaryZoneId |
string |
No |
The ID of the primary zone for the multi-zone instance. This parameter is required if you want to create a multi-zone instance. |
cn-shanghai-e |
| StandbyZoneId |
string |
No |
The ID of the secondary zone for the multi-zone instance. This parameter is required if you want to create a multi-zone instance. |
cn-shanghai-f |
| ArbiterZoneId |
string |
No |
The ID of the arbiter zone for the multi-zone instance. This parameter is required if you want to create a multi-zone instance. |
cn-shanghai-g |
| MultiZoneCombination |
string |
No |
The combination of zones for the multi-zone instance. To view the supported zone combinations, go to the instance buy page.
This parameter is required if you want to create a multi-zone instance. |
cn-shanghai-efg-aliyun |
| PrimaryVSwitchId |
string |
No |
The ID of the vSwitch in the primary zone for the multi-zone instance. The vSwitch must be in the zone specified by PrimaryZoneId. This parameter is required if you want to create a multi-zone instance. |
vsw-uf6fdqa7c0pipnqzq**** |
| StandbyVSwitchId |
string |
No |
The ID of the vSwitch in the secondary zone for the multi-zone instance. The vSwitch must be in the zone specified by StandbyZoneId. This parameter is required if you want to create a multi-zone instance. |
vsw-2zec0kcn08cgdtr6**** |
| ArbiterVSwitchId |
string |
No |
The ID of the vSwitch in the arbiter zone for the multi-zone instance. The vSwitch must be in the zone specified by ArbiterZoneId. This parameter is required if you want to create a multi-zone instance. |
vsw-uf6664pqjawb87k36**** |
| CoreSingleStorage |
integer |
No |
The storage capacity of a single core node in the multi-zone instance. Unit: GB. Valid values: 400 to 64000. This parameter is required if you want to create a multi-zone instance. |
400 |
| LogDiskCategory |
string |
No |
The disk type of the log nodes in the multi-zone instance. Valid values:
This parameter is required if you want to create a multi-zone instance. |
cloud_ssd |
| LogSpec |
string |
No |
The specifications of the log nodes in the multi-zone instance. Valid values:
This parameter is required if you want to create a multi-zone instance. |
lindorm.sn1.large |
| LogNum |
integer |
No |
The number of log nodes in the multi-zone instance. Valid values: 4 to 400. This parameter is required if you want to create a multi-zone instance. |
4 |
| LogSingleStorage |
integer |
No |
The storage capacity of a single log node in the multi-zone instance. Unit: GB. Valid values: 400 to 64000. This parameter is required if you want to create a multi-zone instance. |
400 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-aek2i6weeb4nfii |
| AutoRenewal |
boolean |
No |
Specifies whether to enable auto-renewal for the instance. Valid values:
Default value: false Note
This parameter is available only when PayType is set to PREPAY. |
false |
| AutoRenewDuration |
string |
No |
The auto-renewal duration. Unit: month. Valid values: 1 to 12. Note
This parameter is available only when AutoRenewal is set to true. |
1 |
| LtsSpec |
string |
No |
The node specifications for the LTS engine. Valid values:
|
lindorm.g.xlarge |
| LtsNum |
string |
No |
The number of LTS engine nodes in the instance. Valid values: 0 to 60. |
2 |
| Tag |
array<object> |
No |
The tags. |
|
|
object |
No |
The tags. |
||
| Key |
string |
No |
The key of the tag. You can specify up to 20 tags. Note
You can pass keys for multiple tags. For example, the Key in the first pair specifies the key for the first tag. The Key in the second pair specifies the key for the second tag. |
test |
| Value |
string |
No |
The value of the tag. You can specify up to 20 tags. Note
You can pass values for multiple tags. For example, the Value in the first pair specifies the value for the first tag. The Value in the second pair specifies the value for the second tag. |
value |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
93BE8227-3406-4D7A-883D-9A421D42**** |
| InstanceId |
string |
The ID of the created instance. |
ld-bp1o3y0yme2i2**** |
| OrderId |
integer |
The ID of the order. |
111111111111111 |
| AccessDeniedDetail |
string |
The details about the access denial. |
{"AuthAction":"xxx","AuthPrincipalDisplayName":"222","AuthPrincipalOwnerId":"111","AuthPrincipalType":"SubUser",,"NoPermissionType":"ImplicitDeny","PolicyType":"AccountLevelIdentityBasedPolicy","EncodedDiagnosticMessage":"xxxxxx"} |
Examples
Success response
JSON format
{
"RequestId": "93BE8227-3406-4D7A-883D-9A421D42****",
"InstanceId": "ld-bp1o3y0yme2i2****",
"OrderId": 111111111111111,
"AccessDeniedDetail": "{\"AuthAction\":\"xxx\",\"AuthPrincipalDisplayName\":\"222\",\"AuthPrincipalOwnerId\":\"111\",\"AuthPrincipalType\":\"SubUser\",,\"NoPermissionType\":\"ImplicitDeny\",\"PolicyType\":\"AccountLevelIdentityBasedPolicy\",\"EncodedDiagnosticMessage\":\"xxxxxx\"}"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Lindorm.Errorcode.ParameterInvaild | The parameter is invalid. | |
| 400 | LindormErrorCode.%s | %s. | %s. |
| 403 | Lindorm.Errorcode.OperationDenied | You are not authorized to operate on the specified resource. | |
| 403 | API.Forbidden | The API operation is forbidden in this environment. | This operation is not supported in the current environment. |
| 403 | Lindorm.Errorcode.ServiceLinkedRoleNoPermission | No permission to create service linked role. | You are not authorized to create the service-linked role. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.