Queries database information in a data lake.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetDataLakeDatabase |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DataRegion |
string |
Yes |
The region where the data lake resides. |
cn-hangzhou |
| CatalogName |
string |
Yes |
The name of the data catalog. |
hive |
| Name |
string |
Yes |
The database name. |
default |
| Tid |
integer |
No |
The ID of the tenant. Note
To view the tenant ID, go to the Data Management (DMS) console and move the pointer 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 |
Schema of Response |
||
| RequestId |
string |
The request ID. |
E5EE2B9E-2F95-57FA-B284-CB441CEE49D6 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code returned if the request failed. |
404 |
| ErrorMessage |
string |
The error message returned if the request failed. |
code: 404, can not find catalog, name : hive1 request id: FF737753-9641-1F51-AFDA-7DF541114B29 |
| Database | DLDatabase |
The database information. |
Examples
Success response
JSON format
{
"RequestId": "E5EE2B9E-2F95-57FA-B284-CB441CEE49D6",
"Success": true,
"ErrorCode": "404",
"ErrorMessage": "code: 404, can not find catalog, name : hive1 request id: FF737753-9641-1F51-AFDA-7DF541114B29",
"Database": {
"Description": "Default database for catalog hive",
"Parameters": {
"test": "test",
"test2": 1
},
"DbId": 19,
"CatalogName": "hive",
"Name": "default",
"Location": "oss://xxx"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.