All Products
Search
Document Center

Hologres:CreateInstance

Last Updated:Oct 29, 2026

Creates a Hologres instance.

Operation description

Warning This API operation incurs fees. Make sure that you fully understand the billing methods and pricing of Hologres before you call this operation.
  • For more information about Hologres billing, see Billing overview.

  • When you create a Hologres instance, you must specify the region and zone where the instance resides. A region may contain multiple zones. Details:

   cn-hangzhou (Hangzhou): cn-hangzhou-h, cn-hangzhou-j, cn-hangzhou-k
   cn-shanghai (Shanghai): cn-shanghai-e, cn-shanghai-f, cn-shanghai-l
   cn-beijing (Beijing): cn-beijing-i, cn-beijing-g, cn-beijing-l
   cn-zhangjiakou (Zhangjiakou): cn-zhangjiakou-b
   cn-shenzhen (Shenzhen): cn-shenzhen-d, cn-shenzhen-f, cn-shenzhen-e
   cn-wulanchabu (Ulanqab): cn-wulanchabu-a
   cn-hongkong (Hong Kong): cn-hongkong-b, cn-hongkong-d
   cn-shanghai-finance-1 (Alibaba Finance Cloud in Shanghai): cn-shanghai-finance-1z, cn-shanghai-finance-1f
   cn-hangzhou-finance (Alibaba Finance Cloud in Hangzhou): cn-hangzhou-finance-k
   cn-shenzhen-finance-1 (Alibaba Finance Cloud in Shenzhen): cn-shenzhen-finance-1d
   ap-northeast-1 (Japan): ap-northeast-1a
   ap-southeast-1 (Singapore): ap-southeast-1c, ap-southeast-1a
   ap-southeast-3 (Kuala Lumpur): ap-southeast-3b
   ap-southeast-5 (Jakarta): ap-southeast-5b
   eu-central-1 (Frankfurt): eu-central-1a
   us-east-1 (Silicon Valley): us-east-1a
   us-west-1 (Virginia): us-west-1b

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

hologram:CreateInstance

create

*All Resource

*

None None

Request syntax

POST /api/v1/instances/create HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body.

regionId

string

Yes

The region ID. You can go to service endpoints to view the supported regions.

cn-hangzhou

zoneId

string

Yes

The zone ID. For more information, see the "Usage notes" section.

cn-hangzhou-h

vpcId

string

Yes

The ID of the virtual private cloud (VPC). The region ID of the VPC must be the same as that of the instance.

vpc-t4netc3y5xxxx

vSwitchId

string

Yes

The ID of the vSwitch. The zone ID of the vSwitch must be the same as that of the instance.

vsw-2vccsiymtxxxxxx

resourceGroupId

string

No

The ID of the resource group. If this parameter is left empty, the default resource group of the account is used.

""

instanceName

string

Yes

The name of the instance. The name must be 2 to 64 characters in length. Each Chinese character or letter counts as one character.

my_holo

instanceType

string

Yes

The instance type. Valid values:

  • Standard: general-purpose instance.

  • Follower: read-only secondary instance.

  • Warehouse: compute group instance.

  • Shared: shared instance.

  • Severless: Serverless instance.

Valid values:

  • Warehouse :

    Warehouse

  • Follower :

    Follower

  • Standard :

    Standard

  • Serverless :

    Serverless

  • Shared :

    Shared

Standard

cpu

integer

No

The instance specifications. Valid values:

  • 32 cores and 128 GB memory (number of compute nodes: 2)

  • 64 cores and 256 GB memory (number of compute nodes: 4)

  • 96 cores and 384 GB memory (number of compute nodes: 6)

  • 128 cores and 512 GB memory (number of compute nodes: 8)

  • etc.

Note
  • Specify only the number of cores.

  • To purchase an instance with more than 1,024 cores, submit a ticket.

  • You do not need to specify the specifications for a Shared instance.

64

storageSize

integer

No

The standard storage capacity of the instance. Unit: GB.

Note

This parameter is ignored for pay-as-you-go instances.

500

coldStorageSize

integer

No

The low-frequency storage capacity of the instance. Unit: GB.

Note

This parameter is ignored for pay-as-you-go instances.

500

gatewayCount

integer

No

The number of gateways. Valid values: 2 to 50.

Note

This parameter is required only for Warehouse instances.

4

chargeType

string

Yes

The billing method. Valid values:

  • PrePaid: subscription.

  • PostPaid: pay-as-you-go.

Note

This parameter is ignored for Shared instances. A Shared instance uses defined specifications and the default billing method is pay-as-you-go.

Valid values:

  • PostPaid :

    PostPaid

  • PrePaid :

    PrePaid

PostPaid

autoPay

boolean

No

Specifies whether to enable automatic payment. Default value: true. Valid values:

  • true: enables automatic payment.

  • false: generates an unpaid order.

Note

Default value: true. If your payment method has insufficient balance, you can set the AutoPay parameter to false to generate an unpaid order. You can then log on to the Expenses and Costs console to complete the payment.

true

pricingCycle

string

No

The billing cycle. Valid values:

  • Month: monthly billing.

  • Hour: hourly billing.

Note
  • PrePaid supports only Month.

  • PostPaid supports only Hour.

  • For Shared instances, this parameter is automatically set to Hour and does not need to be specified.

Valid values:

  • Month :

    Month

  • Hour :

    Hour

Month

duration

integer

No

The subscription duration. For example, a value of 2 indicates two months.

Note

This parameter is not required if the billing method is pay-as-you-go.

2

autoRenew

boolean

No

Specifies whether to enable auto-renewal on a monthly basis. Default value: false. Valid values:

  • true: enables auto-renewal.

  • false: disables auto-renewal.

false

leaderInstanceId

string

No

The ID of the leader instance. This parameter is required for Follower instances.

Note

The leader and follower instances must meet the following conditions:

  • The leader instance is in the Running state.

  • The leader and follower instances have the same region ID.

  • The leader and follower instances have the same zone ID.

  • The leader instance is associated with fewer than 10 follower instances.

  • The leader and follower instances belong to the same Alibaba Cloud account.

hgpostcn-cn-lbj3aworq112

initialDatabases

string

No

The initial databases.

chatbot

enableServerlessComputing

boolean

No

Specifies whether to enable Serverless Computing.

Valid values:

  • true :

    Enabled.

  • false :

    Disabled.

true

storageType

string

No

The storage type.

Valid values:

  • local :

    Locally redundant storage.

  • redundant :

    Zone-redundant storage (multi-zone).

redundant

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

9CC37B9F-F4B4-5FF1-939B-AEE78DC70130

Data

object

The returned result.

InstanceId

string

The instance ID.

hgpostcn-cn-xxxxxx

OrderId

string

The order ID.

217523224780172

Code

string

The error code.

InvalidVpcOrVSwitch.NotAvailable

Message

string

The detailed error message.

InvalidVpcOrVSwitch.NotAvailable

Success

string

Indicates whether the instance is created. Valid values:

  • true: The instance is created.

  • false: The instance fails to be created.

true

HttpStatusCode

string

The HTTP status code.

200

ErrorMessage

string

The error message.

null

ErrorCode

string

The error code.

null

Note
  • If a parameter validation error occurs, the Data parameter is still returned, but the Success parameter is set to false, and the Code and Message parameters are included. Unless an exception is thrown, the success of the operation is determined by the Data.Success parameter.

  • When you use the latest SDK to call this operation, a request timeout error may be returned because the default timeout period of the client in the SDK is inconsistent with that of the server. However, the operation is actually called successfully. To avoid this issue, you can set the ReadTimeout parameter to 20000 before you call the operation.

Examples

Success response

JSON format

{
  "RequestId": "9CC37B9F-F4B4-5FF1-939B-AEE78DC70130",
  "Data": {
    "InstanceId": "hgpostcn-cn-xxxxxx",
    "OrderId": "217523224780172",
    "Code": "InvalidVpcOrVSwitch.NotAvailable",
    "Message": "InvalidVpcOrVSwitch.NotAvailable\n",
    "Success": "true"
  },
  "HttpStatusCode": "200",
  "ErrorMessage": "null",
  "ErrorCode": "null"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.