Creates a cloud-native Tair (Enterprise Edition) instance.
Operation description
For instance selection guidelines, see Tair (Redis OSS-Compatible) database selection guide.
Before you invoke this operation, make sure that you fully understand the billing methods and pricing of the Tair (Redis OSS-Compatible) database.
For console operations, see Create a Tair instance.
To create other types of instances, such as open-source or Tair memory-optimized classic edition instances, invoke the CreateInstance operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:CreateTairInstance |
create |
*DBInstance
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the most recent region list. Use this parameter to specify the region where you want to create the instance. |
cn-hangzhou |
| InstanceName |
string |
No |
The instance name. The name must meet the following requirements:
|
apitest |
| Password |
string |
No |
The instance password. The password must meet the following requirements:
|
Pass!123456 |
| InstanceClass |
string |
Yes |
The instance type. For more information, see: |
tair.scm.standard.4m.32d |
| ZoneId |
string |
No |
The primary zone ID. You can call the DescribeRegions operation to query the most recent zone list. Use this parameter to specify the zone where you want to create the instance. Note
You can also specify the SecondaryZoneId parameter to configure a secondary zone. The primary and secondary nodes will be deployed in the specified primary and secondary zones to implement a dual-data center primary/secondary architecture in the same city. For example, set ZoneId to "cn-hangzhou-h" and SecondaryZoneId to "cn-hangzhou-g". |
cn-hangzhou-h |
| SecondaryZoneId |
string |
No |
The secondary zone ID. You can call the DescribeRegions operation to query the most recent zone list. Note
The value of this parameter cannot be the same as the value of the ZoneId parameter, and you cannot specify an ID that corresponds to multiple zones. |
cn-hangzhou-g |
| ChargeType |
string |
No |
The billing method. Valid values:
Valid values:
|
PrePaid |
| VpcId |
string |
Yes |
The VPC ID. You can call the DescribeVpcs operation of VPC to query the VPC ID. |
vpc-bp1nme44gek34slfc**** |
| VSwitchId |
string |
Yes |
The vSwitch ID in the VPC. You can call the DescribeVpcs operation of VPC to query the vSwitch ID. |
vsw-bp1e7clcw529l773d**** |
| Period |
integer |
No |
The subscription period. Unit: months. Valid values: 1 to 9, 12, 24, 36, and 60. Note
This parameter is required when the ChargeType parameter is set to PrePaid. |
1 |
| BusinessInfo |
string |
No |
The activity ID and business information. |
000000000 |
| CouponNo |
string |
No |
The coupon code. |
youhuiquan_promotion_option_id_for_blank |
| SrcDBInstanceId |
string |
No |
Instance ID of the source instance. If you want to create an instance based on the backup set of an existing instance, specify instance ID of the source instance in this parameter. Note
Then, specify the backup set or point in time by using the BackupId, ClusterBackupId (recommended for cloud-native cluster architecture), or RestoreTime parameter. This parameter must be used in combination with one of the preceding three parameters. |
r-bp1zxszhcgatnx**** |
| BackupId |
string |
No |
The ID of the backup set of the source instance. The system uses the data in the backup set to create the instance. You can invoke the DescribeBackups operation to query the backup set ID. If the source instance is a cluster instance, you must enter the backup set IDs of all shards in the source instance and separate them with commas, such as "10**,11**,15**". Note
If your instance is a cloud-native architecture instance and a cluster instance, we recommend that you invoke the DescribeClusterBackupList operation to query the cluster backup set ID, such as "cb-xx", and then specify the ClusterBackupId request parameter to clone the cluster instance. This saves you the trouble of entering the backup set ID of each shard. |
2158****20 |
| ClusterBackupId |
string |
No |
The ID of the cluster backup set. Some new cluster architectures support cluster backup set IDs. You can call the DescribeClusterBackupList operation to obtain the ID.
|
cb-hyxdof5x9kqb**** |
| RecoverConfigMode |
string |
No |
Specifies whether to restore the account, kernel parameter, and whitelist information from the original backup set when you create an instance by using a specified backup set. For example, to restore the account information, set the value to account. Default value: empty. An empty value indicates that the account, kernel parameter, and whitelist information are not restored from the original backup set. Note
This parameter is applicable only to cloud-native instances and requires that the account, kernel parameter, and whitelist information are saved in the original backup set. You can call the DescribeBackups operation to query whether the RecoverConfigMode parameter of a specified backup set contains the preceding information. |
whitelist,config,account |
| PrivateIpAddress |
string |
No |
The internal IP address of the instance. Note
The IP address must fall within the CIDR block of the vSwitch to which the instance belongs. You can call the DescribeVSwitches operation of VPC to query the CIDR block. |
172.16.88.*** |
| AutoUseCoupon |
string |
No |
Specifies whether to use a voucher. Valid values:
|
true |
| AutoRenew |
string |
No |
Specifies whether to enable auto-renewal. Valid values:
|
true |
| AutoRenewPeriod |
string |
No |
The auto-renewal epoch. Unit: months. Valid values: 1, 2, 3, 6, and 12. Note
This parameter is required when the AutoRenew parameter is set to true. |
3 |
| ResourceGroupId |
string |
No |
The ID of the destination resource group. Note
|
rg-acfmyiu4ekp**** |
| AutoPay |
boolean |
No |
Specifies whether to enable automatic payment. Set the value to true. Valid values:
|
true |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must ensure that the token is unique among different requests. The token is case-sensitive and can be up to 64 ASCII characters in length. |
ETnLKlblzczshOTUbOCz**** |
| StorageType |
string |
No |
The storage type. Valid values: essd_pl1, essd_pl2, and essd_pl3. Note
This parameter is required only when the InstanceType parameter is set to tair_essd and you create an ESSD-based instance. |
essd_pl1 |
| Storage |
integer |
No |
The storage capacity of the disk-based instance. The value range varies based on the instance type. For more information, see Disk-based instance types. Note
This parameter is required only when the InstanceType parameter is set to tair_essd and you create an ESSD-based instance. If you create a Tair disk SSD-based instance, the capacity field is defined as a fixed value based on the instance type, and you do not need to specify this parameter. |
60 |
| ShardType |
string |
No |
The instance edition. Valid values:
Valid values:
|
MASTER_SLAVE |
| ShardCount |
integer |
No |
The number of data nodes in the instance. Valid values:
Note
You can set this parameter to a value from 2 to 32 only when the InstanceType parameter is set to tair_rdb or tair_scm. Only memory-optimized and persistent memory-optimized instances support the cluster architecture. |
2 |
| ReplicaCount |
integer |
No |
The number of secondary nodes in the primary zone. This parameter is applicable only when you create a cloud-native cluster multi-replica instance. You can use this parameter to customize the number of secondary nodes. Valid values: 1 to 4. Note
If you create a multi-zone instance, you can use this parameter and the SlaveReplicaCount parameter to customize the number of secondary nodes in the primary and secondary zones. The sum of this parameter and the SlaveReplicaCount parameter cannot exceed 4. |
2 |
| SlaveReplicaCount |
integer |
No |
The number of secondary nodes in the secondary zone. |
2 |
| ReadOnlyCount |
integer |
No |
The number of read-only nodes in the primary zone. This parameter is applicable only when you create a cloud-native read/write splitting instance.
Note
If you create a multi-zone instance, you can use this parameter and the SlaveReadOnlyCount parameter to customize the number of read-only nodes in the primary and secondary zones.
|
5 |
| SlaveReadOnlyCount |
integer |
No |
The number of read-only nodes in the secondary zone. |
1 |
| EngineVersion |
string |
No |
The database engine version. Default value: 1.0. The value varies based on the Tair instance type:
Valid values:
|
1.0 |
| InstanceType |
string |
Yes |
The storage medium. Valid values:
|
tair_scm |
| GlobalInstanceId |
string |
No |
Specifies whether to use the new instance as a child instance of a distributed instance. You can create a distributed instance by using this parameter.
Note
If you want to use the instance as a distributed instance, the new instance must be a Tair memory-optimized instance. |
gr-bp14rkqrhac**** |
| Tag |
array<object> |
No |
The tag information of the instance. |
|
|
object |
No |
The tag information. |
||
| Key |
string |
No |
The tag key. A tag key and a tag value form a tag key-value pair. Note
You can specify up to 5 tag key-value pairs at a time. |
key1_test |
| Value |
string |
No |
The tag value. Note
N specifies the sequence number of the tag. For example, Tag.1.Value specifies the value of the first tag, and Tag.2.Value specifies the value of the second tag. |
value1_test |
| DryRun |
boolean |
No |
Specifies whether to perform a precheck on the instance creation operation. Valid values:
|
false |
| Port |
integer |
No |
The service port of the instance. Valid values: 1 to 65535. Default value: 6379. |
6379 |
| GlobalSecurityGroupIds |
string |
No |
The global IP address whitelist template of the instance. Separate multiple IP address whitelist templates with commas (,). Duplicates are not allowed. |
g-zsldxfiwjmti0kcm**** |
| ParamGroupId |
string |
No |
The parameter template ID. The instance is created based on the parameters in the new parameter template. Duplicates are not allowed. |
g-50npzjcqb1ua6q6j**** |
| RestoreTime |
string |
No |
The point in time to which you want to restore the source instance. If the data flashback feature is enabled for the source instance, you can specify a point in time within the backup retention period of the source instance. The system uses the backup data of the source instance at the specified point in time to create the new instance. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2021-07-06T07:25:57Z |
| ConnectionStringPrefix |
string |
No |
The prefix of the endpoint. The prefix must be 8 to 40 characters in length and can contain lowercase letters and digits. It must start with a lowercase letter. Note
The endpoint format is: |
r-bp1zxszhcgatnx**** |
| InstanceEndpointType |
string |
No |
The endpoint type used when you create a cloud-native dual-active-zone read/write splitting instance. If you do not explicitly specify this parameter, the default value is AzIndependentEndpoint.
Important This parameter is applicable only to cloud-native dual-active-zone read/write splitting instances. For other types of instances, only active zone-independent endpoints are supported. Even if you specify UnifiedEndpoint, it does not take effect. Important The UnifiedEndpoint parameter is currently available only to whitelisted users. If a non-whitelisted user specifies this parameter, an invoke error is reported. To apply for the permissions, commit a ticket. Valid values:
|
AzIndependentEndpoint |
| MaintainStartTime |
string |
No |
The start time of the maintenance window for the instance. Specify the time in the HH:mmZ format. The time must be in UTC. For example, if you want the maintenance window to start at 01:00 (UTC+8), set the value to 17:00Z. Note
If you do not specify this parameter, the default value is 18:00 (UTC), which is 02:00 (UTC+8). |
17:00Z |
| MaintainEndTime |
string |
No |
The end time of the maintenance window for the instance. Specify the time in the HH:mmZ format. The time must be in UTC. For example, if you want the maintenance window to end at 02:00 (UTC+8), set the value to 18:00Z. Note
The interval between the start time and the end time must be at least 1 hour. Note
If you do not specify this parameter, the default value is 22:00 (UTC), which is 06:00 (UTC+8). |
18:00Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The object. |
||
| Bandwidth |
integer |
The maximum bandwidth of the instance. Unit: MB/s. |
96 |
| ChargeType |
string |
The billing method of the instance. Valid values:
|
PrePaid |
| Config |
string |
The detailed configuration of the instance, in the format of a JSON character string. For more information about the parameters, see Parameter settings description. |
{\"EvictionPolicy\":\"volatile-lru\",\"hash-max-ziplist-entries\":512,\"zset-max-ziplist-entries\":128,\"list-max-ziplist-entries\":512,\"list-max-ziplist-value\":64,\"zset-max-ziplist-value\":64,\"set-max-intset-entries\":512,\"hash-max-ziplist-value\":64} |
| ConnectionDomain |
string |
The internal network connection endpoint of the instance. |
r-bp13ac3d047b****.tairpena.rds.aliyuncs.com |
| Connections |
integer |
The maximum number of connections supported by the instance. |
10000 |
| InstanceId |
string |
The instance ID. |
r-bp13ac3d047b**** |
| InstanceName |
string |
The instance name. Note
This parameter is returned only when the InstanceName request parameter is specified. |
redistest |
| InstanceStatus |
string |
The current status of the instance. The value is fixed to Creating. |
Creating |
| OrderId |
integer |
The order ID. |
2084452111111 |
| Port |
integer |
The port number of the instance. |
6379 |
| QPS |
integer |
The maximum number of read and write operations processed per second. Unit: operations per second. This value is the theoretical value of the current instance type. |
100000 |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| RequestId |
string |
The request ID. |
12123216-4B00-4378-BE4B-08005BFC**** |
| TaskId |
string |
The task ID. |
10**** |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-h |
Examples
Success response
JSON format
{
"Bandwidth": 96,
"ChargeType": "PrePaid",
"Config": "{\\\"EvictionPolicy\\\":\\\"volatile-lru\\\",\\\"hash-max-ziplist-entries\\\":512,\\\"zset-max-ziplist-entries\\\":128,\\\"list-max-ziplist-entries\\\":512,\\\"list-max-ziplist-value\\\":64,\\\"zset-max-ziplist-value\\\":64,\\\"set-max-intset-entries\\\":512,\\\"hash-max-ziplist-value\\\":64}",
"ConnectionDomain": "r-bp13ac3d047b****.tairpena.rds.aliyuncs.com",
"Connections": 10000,
"InstanceId": "r-bp13ac3d047b****",
"InstanceName": "redistest",
"InstanceStatus": "Creating",
"OrderId": 2084452111111,
"Port": 6379,
"QPS": 100000,
"RegionId": "cn-hangzhou",
"RequestId": "12123216-4B00-4378-BE4B-08005BFC****",
"TaskId": "10****",
"ZoneId": "cn-hangzhou-h"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | Period is mandatory for this action. | |
| 400 | InvalidToken.Malformed | The Specified parameter Token is not valid. | |
| 400 | InvalidInstanceName.Malformed | The Specified parameter InstanceName is not valid. | |
| 400 | InvalidPassword.Malformed | The Specified parameter Password is not valid. | |
| 400 | InsufficientBalance | Your account does not have enough balance. | |
| 400 | QuotaExceed.AfterpayInstance | Living afterpay instances quota exceeded. | |
| 400 | InvalidCapacity.NotFound | The Capacity provided does not exist in our records. | |
| 400 | ResourceNotAvailable | Resource you requested is not available for finance user. | |
| 400 | PaymentMethodNotFound | No payment method has been registered on the account. | |
| 400 | IdempotentParameterMismatch | Request uses a client token in a previous request but is not identical to that request. | Idempotent check. |
| 400 | QuotaNotEnough | Quota not enough in this zone. | |
| 400 | QuotaExceed | Living afterpay instances quota exceed. | |
| 400 | VpcServiceError | Invoke vpc service failed. | |
| 400 | IzNotSupportVpcError | Specify iz not support vpc. | |
| 400 | InvalidvSwitchId | The vpc does not cover the vswitch. | |
| 400 | InvalidIzNo.NotSupported | The Specified vpc zone not supported. | |
| 400 | InvalidAccountPassword.Format | Specified account password is not valid. | |
| 400 | InstanceClass.NotMatch | Current instance class and instance type is not match. | |
| 400 | InvalidVPCId.NotFound | Specified virtual vpc is not found. | The specified VPC is not found. Check whether the VPC ID is correct. |
| 400 | AccountMoneyValidateError | Account money validate error. | |
| 400 | RequestTokenConflict | Specified request token conflict. | |
| 400 | InvalidIPNotInSubnet | Error ip not in subnet. | |
| 400 | InvalidEngineVersion.Malformed | Specified engine version is not valid. | The error message returned because the instance engine version is invalid. |
| 400 | Zone.Closed | The specified zone is closed. | |
| 400 | VSwithNotBelongToNotVpcFault | The vSwitch does not belong to current vpc. | |
| 400 | PayIllegalAgreement | Pay mayi with holding agreement illegal. | |
| 400 | IllegalParamError | validateSaleConditionWithSubArticle failed. | |
| 400 | CASH_BOOK_INSUFFICIENT | No payment method is specified for your account. We recommend that you add a payment method or maitain a minimum prepayment balance of INR 1000. | |
| 400 | InvalidRegion.Format | Specified Region is not valid. | The specified region is invalid. |
| 403 | RealNameAuthenticationError | Your account has not passed the real-name authentication yet. | |
| 403 | AuthorizationFailure | The request processing has failed due to authorization failure. | |
| 403 | TokenServiceError | The specified token is duplicated, please change it. | |
| 403 | UserCannotBuyNotInnerCommodity | The user can not buy this commodity without alibaba group tag. | |
| 404 | InvalidCapacity.NotFound | The Capacity provided does not exist in our records. | The specified storage specification does not exist. |
| 404 | InvalidvSwitchId | The Specified vSwitchId zone not supported. | |
| 404 | InvalidVpcIdOrVswitchId.NotSupported | The Specified vpcId or vSwitchId not supported. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.