Creates a Lindorm V2 instance.
Operation description
You must specify at least one DPI engine when you create an instance. For more information about DPI engines and storage specifications, see How to select a DPI engine and How to select storage specifications.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
lindorm:CreateLindormV2Instance |
create |
*All Resource
|
None | None |
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 |
| CloudStorageType |
string |
No |
The storage class. This parameter is not required if you select Big Data or Local SSD.
|
PerformanceStorage |
| PayType |
string |
Yes |
The billing method of the instance. Valid values:
|
PREPAY |
| VPCId |
string |
Yes |
The ID of the virtual private cloud (VPC) for the instance. |
vpc-wz9ydz3vg93s1ozsd**** |
| VSwitchId |
string |
No |
The ID of the vSwitch. |
vsw-bp1e7clcw529l773d**** |
| PricingCycle |
string |
No |
The subscription period of the instance. Valid values:
Note
This parameter is required only when you set PayType to PREPAY. |
Month |
| Duration |
integer |
No |
The subscription duration of the instance. Valid values:
Note
This parameter is required only when you set PayType to PREPAY. |
1 |
| CloudStorageSize |
integer |
Yes |
The size of the cloud storage. Unit: GB. |
320 |
| ArchVersion |
string |
No |
The deployment architecture. Valid values:
|
2.0 |
| PrimaryZoneId |
string |
No |
The ID of the primary zone for a 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 a 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 a multi-zone instance. This parameter is required if you want to create a multi-zone instance. |
cn-shanghai-g |
| PrimaryVSwitchId |
string |
No |
The ID of the vSwitch in the primary zone for a 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 a 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 a 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**** |
| 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:
The default value is false. Note
This parameter is valid only when you set PayType to PREPAY. |
false |
| AutoRenewDuration |
string |
No |
The auto-renewal duration. Unit: month. Valid values: 1 to 12. Note
This parameter is valid only when you set AutoRenewal to true. |
1 |
| ClusterPattern |
string |
No |
The cluster type. Valid value:
|
basic |
| ClusterMode |
string |
No |
The instance mode. This parameter is not required.
|
BASIC |
| EnableCapacityStorage |
boolean |
No |
Specifies whether to enable storage-optimized storage. |
false |
| CapacityStorageSize |
integer |
No |
The size of the storage-optimized storage. Unit: GB. |
10000 |
| EngineList |
array<object> |
Yes |
The list of engine information. |
|
|
array<object> |
No |
The list of engine information. |
||
| EngineType |
string |
Yes |
The engine type. Valid values:
|
TABLE |
| NodeGroupList |
array<object> |
No |
The list of engine nodes. |
|
|
object |
No |
The list of engine nodes. |
||
| NodeSpec |
string |
Yes |
The node specifications. If you select performance cloud storage or standard cloud storage, set this parameter to one of the following values:
If you select the local SSD type, set this parameter to one of the following values:
If you select the big data type, set this parameter to one of the following values:
|
lindorm.g.2xlarge |
| NodeCount |
integer |
Yes |
The number of nodes in the cluster. |
7 |
| NodeDiskType |
string |
No |
The disk type of the node. This parameter is not required. This parameter is available only for specific scenarios. To use this parameter, you must be added to the whitelist. |
cloud_essd |
| NodeDiskSize |
integer |
No |
The disk size of a single node. The default unit is GB. |
100 |
| ResourceGroupName |
string |
No |
The name of the node group. This parameter is required. |
group_name_01 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
1556DCB0-043A-4444-8BD9-CF4A68E7EE64 |
| InstanceId |
string |
The instance ID. |
ld-bp1mq0tdzbx1m**** |
| OrderId |
integer |
The order ID. |
211110656240000 |
| AccessDeniedDetail |
string |
The detailed reason why the access was denied. |
{"AuthAction":"xxx","AuthPrincipalDisplayName":"222","AuthPrincipalOwnerId":"111","AuthPrincipalType":"SubUser",,"NoPermissionType":"ImplicitDeny","PolicyType":"AccountLevelIdentityBasedPolicy","EncodedDiagnosticMessage":"xxxxxx"} |
Examples
Success response
JSON format
{
"RequestId": "1556DCB0-043A-4444-8BD9-CF4A68E7EE64",
"InstanceId": "ld-bp1mq0tdzbx1m****",
"OrderId": 211110656240000,
"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.