CreateLindormInstance
Create a Lindorm instance.
Operation description
To create an instance, you must specify at least one data engine. For example, to create a wide table engine, you must specify both the LindormNum (node count) and LindormSpec (node specification) parameters. For details on data engines and storage specifications, see How to select a data engine and How to select a storage specification.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
lindorm:CreateLindormInstance |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region in which to create the instance. You can call the DescribeRegions operation to query the latest region list. |
cn-shanghai |
| ZoneId |
string |
Yes |
The ID of the zone where you want to create the instance. |
cn-shanghai-f |
| InstanceAlias |
string |
No |
The name of the instance. |
lindorm_test |
| InstanceStorage |
string |
No |
The storage capacity of the instance, in GB. |
480 |
| PayType |
string |
Yes |
The billing method of the instance. Valid values:
|
POSTPAY |
| VPCId |
string |
Yes |
The ID of the VPC where you want to create the instance. |
vpc-bp1nme44gek34slfc**** |
| VSwitchId |
string |
Yes |
The ID of the VSwitch. |
vsw-bp1e7clcw529l773d**** |
| PricingCycle |
string |
No |
The billing cycle for the Subscription instance. Valid values:
Note
This parameter is required if you set PayType to PREPAY. |
Month |
| Duration |
string |
No |
The subscription duration for the instance. Valid values:
Note
This parameter is required if you set PayType to PREPAY. |
1 |
| DiskCategory |
string |
Yes |
The storage type of the instance. Valid values:
|
cloud_efficiency |
| CoreSpec |
string |
No |
The node specification for an instance that uses local disks. If the storage type is local_ssd_pro, valid values include the following: Note that I3-family specifications are available only for Subscription instances.
If the storage type is local_hdd_pro, valid values include:
|
lindorm.i2.xlarge |
| LindormNum |
integer |
No |
The number of nodes in the wide table engine. For a single-zone instance, the value of this parameter ranges from 0 to 90. This parameter is required for multi-zone instances. For an instance that uses cloud disks, the value ranges from 4 to 400. For an instance that uses local disks, the value ranges from 6 to 400. |
2 |
| SolrSpec |
string |
No |
The specification of the search engine nodes. Valid values:
|
lindorm.g.xlarge |
| SolrNum |
integer |
No |
The number of search engine nodes. The value of this parameter ranges from 0 to 60. |
2 |
| ColdStorage |
integer |
No |
The cold storage capacity of the instance, in GB. The value of this parameter ranges from 800 to 1,000,000. If you do not specify this parameter, cold storage is not enabled. |
800 |
| TsdbSpec |
string |
No |
The specification of the time series engine nodes. Valid values:
|
lindorm.g.xlarge |
| TsdbNum |
integer |
No |
The number of nodes in the time series engine. Valid values:
|
2 |
| LindormSpec |
string |
No |
The specification of the wide table engine nodes. Valid values:
|
lindorm.c.xlarge |
| FilestoreNum |
integer |
No |
The number of nodes in the file engine. Valid values:
|
2 |
| FilestoreSpec |
string |
No |
The specification of the file engine nodes. Valid values:
|
lindorm.c.xlarge |
| StreamNum |
integer |
No |
The number of nodes in the stream engine. The value of this parameter ranges from 0 to 60. |
2 |
| StreamSpec |
string |
No |
The specification of the stream engine nodes. Valid values:
|
lindorm.g.xlarge |
| ArchVersion |
string |
No |
The deployment architecture of the instance. Valid values:
The default value is 1.0. To create a multi-zone instance, set this parameter to 2.0. This parameter is required for multi-zone instances. |
2.0 |
| PrimaryZoneId |
string |
No |
The ID of the primary zone for the multi-zone instance. This parameter is required for multi-zone instances. |
cn-shanghai-e |
| StandbyZoneId |
string |
No |
The ID of the standby zone for the multi-zone instance. This parameter is required for multi-zone instances. |
cn-shanghai-f |
| ArbiterZoneId |
string |
No |
The ID of the arbiter zone for the multi-zone instance. This parameter is required for multi-zone instances. |
cn-shanghai-g |
| MultiZoneCombination |
string |
No |
The combination of zones for the multi-zone instance. For a list of supported combinations, refer to the instance purchase page.
This parameter is required for multi-zone instances. |
cn-shanghai-efg-aliyun |
| PrimaryVSwitchId |
string |
No |
The ID of the VSwitch for the primary zone of the multi-zone instance. The VSwitch must be in the zone specified by |
vsw-uf6fdqa7c0pipnqzq**** |
| StandbyVSwitchId |
string |
No |
The ID of the VSwitch for the standby zone of the multi-zone instance. The VSwitch must be in the zone specified by |
vsw-2zec0kcn08cgdtr6**** |
| ArbiterVSwitchId |
string |
No |
The ID of the VSwitch for the arbiter zone of the multi-zone instance. The VSwitch must be in the zone specified by |
vsw-uf6664pqjawb87k36**** |
| CoreSingleStorage |
integer |
No |
The storage capacity of a single core node in the multi-zone instance. Unit: GB. The value of this parameter ranges from 400 to 64,000. This parameter is required for multi-zone instances. |
400 |
| LogDiskCategory |
string |
No |
The storage type of the log nodes for the multi-zone instance. Valid values:
This parameter is required for multi-zone instances. |
cloud_ssd |
| LogSpec |
string |
No |
The specification of the log nodes for the multi-zone instance. Valid values:
This parameter is required for multi-zone instances. |
lindorm.sn1.large |
| LogNum |
integer |
No |
The number of log nodes for the multi-zone instance. The value of this parameter ranges from 4 to 400. This parameter is required for multi-zone instances. |
4 |
| LogSingleStorage |
integer |
No |
The storage capacity of a single log node in the multi-zone instance. Unit: GB. The value of this parameter ranges from 400 to 64,000. This parameter is required for multi-zone instances. |
400 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-aek2i6weeb4nfii |
| AutoRenewal |
boolean |
No |
Specifies whether to enable auto-renewal for the Subscription instance. Valid values:
Default value: false. Note
This parameter takes effect only when the PayType parameter is set to PREPAY. |
false |
| AutoRenewDuration |
string |
No |
The auto-renewal duration, in months. The value of this parameter ranges from 1 to 12. Note
This parameter takes effect only when AutoRenewal is set to true. |
1 |
| LtsSpec |
string |
No |
The specification of the LTS engine nodes. Valid values:
|
lindorm.g.xlarge |
| LtsNum |
string |
No |
The number of nodes in the LTS engine. The value of this parameter ranges from 0 to 60. |
2 |
| Tag |
array<object> |
No |
The tags to add to the instance. You can add up to 20 tags. |
|
|
object |
No |
The list of tags. |
||
| Key |
string |
No |
The key of a tag. Note
You can specify the keys of multiple tags. For example, |
test |
| Value |
string |
No |
The value of a tag. Note
You can specify the values of multiple tags. For example, |
value |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
93BE8227-3406-4D7A-883D-9A421D42**** |
| InstanceId |
string |
The ID of the created instance. |
ld-bp1o3y0yme2i2**** |
| OrderId |
integer |
The order ID. |
111111111111111 |
| AccessDeniedDetail |
string |
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.