All Products
Search
Document Center

Tablestore:CreateInstance

Last Updated:Oct 26, 2026

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ots:InsertInstance

create

*Instance

acs:ots:{#regionId}:{#accountId}:instance/{#InstanceName}

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:

  • The name must consist of letters, digits, or hyphens (-).

  • The first character must be a letter.

  • The last character cannot be a hyphen (-).

  • The name is case-insensitive.

  • The name must be 3 to 16 characters in length.

  • The name cannot contain the words ali, ay, ots, taobao, or admin.

instance-test

ClusterType

string

Yes

The cluster type (instance specification).

Valid values:

  • SSD :

    High-performance.

  • HYBRID :

    Capacity.

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.

  • INTERNET: Internet.

  • VPC: VPC.

  • CLASSIC: classic network.

string

No

The allowed network type for the instance.

Valid values:

  • INTERNET :

    Internet.

  • VPC :

    VPC.

  • CLASSIC :

    Classic network.

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 :

    Trusted gateway (console)

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.