CreateDataLakeDatabase

Updated at:

Creates a data lake database.

Try it now

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

Test

RAM authorization

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

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

CatalogName

string

Yes

The name of the data catalog.

hive

DbName

string

Yes

The name of the database.

default

Description

string

No

The description of the database.

test

Location

string

Yes

The storage path of the database. The path supports the oss, s3, and s3a protocols.

oss://path/to/database

Parameters

object

No

The key-value pairs of the database properties.

string

No

The key and value of the parameter.

{"key":"value"}

Tid

integer

No

The tenant ID.

Note

Hover over your profile picture in the upper-right corner of the DMS console to obtain the tenant ID. For details, see View tenant information.

3****

WorkspaceId

integer

No

The workspace ID.

12****

Response elements

Element

Type

Description

Example

object

Schema of Response.

RequestId

string

The ID of the request, used for log tracing and troubleshooting.

D911009F-3E95-5AFD-8CF1-73F7B4F1****

ErrorCode

string

The error code returned when an error occurs with the request.

UnknownError

ErrorMessage

string

The error message returned when the request fails.

UnknownError

Success

boolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

true

Examples

Success response

JSON format

{
  "RequestId": "D911009F-3E95-5AFD-8CF1-73F7B4F1****",
  "ErrorCode": "UnknownError",
  "ErrorMessage": "UnknownError",
  "Success": true
}

Error codes

See for a complete list.

Release notes

See 变更详情 for a complete list.