Creates a database in a data lakehouse.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:CreateDataLakeDatabase |
create |
*All Resource
|
None | None |
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. OSS, S3, and S3A are supported. |
oss://path/to/database |
| Parameters |
object |
No |
The key-value pairs of the database attributes. |
|
|
string |
No |
The key and value. |
{"key":"value"} |
|
| DataRegion |
string |
Yes |
The region where the data lake resides. |
cn-hangzhou |
| Tid |
integer |
No |
The ID of the tenant. Note
To view the tenant ID, go to the DMS console and hover over the profile picture in the upper-right corner. For more information, see the View information about the current tenant section of the "Manage DMS tenants" topic. |
3*** |
| WorkspaceId |
integer |
No |
The workspace ID. |
12**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. Use it to query logs and troubleshoot issues. |
D911009F-3E95-5AFD-8CF1-73F7B4F15D6E |
| ErrorCode |
string |
The error code returned on failure. |
UnknownError |
| ErrorMessage |
string |
The error message returned on failure. |
UnknownError |
| Success |
boolean |
Whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "D911009F-3E95-5AFD-8CF1-73F7B4F15D6E",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.