All Products
Search
Document Center

Hologres:CreateDatabase

Last Updated:May 14, 2026

Creates a database.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /api/v1/instances/{instanceId}/createDatabase HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

instanceId

string

No

The ID of the instance.

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body.

databaseName

string

No

The name of the database.

permissionModel

string

No

The permission model of the database.

Response elements

Element

Type

Description

Example

object

The response body.

RequestId

string

The ID of the request.

Success

string

Indicates whether the request was successful. Valid values: true and false.

ErrorCode

string

The error code returned if the request fails.

ErrorMessage

string

The error message returned if the request fails.

HttpStatusCode

string

The HTTP status code returned for the request.

Data

boolean

Indicates whether the database was created.

Examples

Success response

JSON format

{
  "RequestId": "",
  "Success": "",
  "ErrorCode": "",
  "ErrorMessage": "",
  "HttpStatusCode": "",
  "Data": false
}

Error codes

HTTP status code

Error code

Error message

Description

403 NoPermission RAM user permission is insufficient, please grant AliyunHologresReadOnlyAccess permission.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.