Creates an instance.
Operation description
Before calling this operation, make sure that you fully understand the billing methods and pricing of Tablestore. For more information, see Billing overview.
A single Alibaba Cloud account can create up to 10 instances, and instance names must be unique within the same region.
The cluster type (instance specification) cannot be modified after the instance is created. Select it with caution.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ots:InsertInstance |
create |
*Instance
|
None | None |
Request syntax
POST /v2/openapi/createinstance HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| InstanceName |
string |
Yes |
The instance name. The naming conventions for instances are as follows:
|
instance-test |
| ClusterType |
string |
Yes |
The cluster type (instance specification). Valid values:
|
SSD |
| InstanceDescription |
string |
No |
The instance description. The description must be 3 to 256 characters in length. |
the test instance |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfmxh4em5jnbcd |
| Network |
string |
No |
[Deprecated] The instance network type. Valid values: NORMAL and VPC_CONSOLE. Default value: NORMAL. |
NORMAL |
| NetworkTypeACL |
array |
No |
The list of allowed network types for the instance. All types are allowed by default.
|
|
|
string |
No |
The allowed network type for the instance. Valid values:
|
VPC |
|
| NetworkSourceACL |
array |
No |
The list of allowed network sources for the instance. All sources are allowed by default. TRUST_PROXY: trusted gateway (console). |
|
|
string |
No |
The allowed network source for the instance. Valid values:
|
TRUST_PROXY |
|
| Policy |
string |
No |
The instance access control policy in JSON format. |
{ "Version": "1", "Statement": [ { "Action": [ "ots:*" ], "Resource": [ "acs:ots:*:13791xxxxxxxxxxx:instance/myinstance*" ], "Principal": [ "*" ], "Effect": "Allow", "Condition": { "StringEquals": { "ots:TLSVersion": [ "1.2" ] }, "IpAddress": { "acs:SourceIp": [ "192.168.0.1", "198.51.100.1" ] } } } ] } |
| Tags |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The tag key-value pair. |
||
| Key |
string |
Yes |
The tag key. The key can be up to 64 characters in length. |
p_instance |
| Value |
string |
Yes |
The tag value. The value can be up to 64 characters in length. |
0woauavextilfqr61 |
DisableReplication
deprecated
|
boolean |
No |
[Deprecated] Specifies whether to enable the disaster recovery status for the instance. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID, which can be used to troubleshoot and locate issues. |
39871ED2-62C0-578F-A32E-B88072D5582F |
| Code |
string |
The response status code. |
200 |
| Message |
string |
The response message description. |
success |
Examples
Success response
JSON format
{
"RequestId": "39871ED2-62C0-578F-A32E-B88072D5582F",
"Code": "200",
"Message": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.