GetDataLakeDatabase
Retrieves information about a database in a data lake.
Try it now
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
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 |
CatalogName | string | Yes | The name of the data catalog. | hive |
Name | string | Yes | The name of the database. | default |
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 request ID. | E5EE2B9E-2F95-57FA-B284-CB441CEE**** |
Success | boolean | Indicates whether the request was successful. Valid values:
| true |
ErrorCode | string | The error code. | 404 |
ErrorMessage | string | The error message. | code: 404, can not find catalog, name : hive1 request id: FF737753-9641-1F51-AFDA-7DF54111**** |
Database | The information about the database. |
Examples
Success response
JSON format
{
"RequestId": "E5EE2B9E-2F95-57FA-B284-CB441CEE****",
"Success": true,
"ErrorCode": "404",
"ErrorMessage": "code: 404, can not find catalog, name : hive1 request id: FF737753-9641-1F51-AFDA-7DF54111****",
"Database": {
"Description": "Default database for catalog hive\n",
"Parameters": {
"test": "test",
"test2": 1
},
"DbId": 19,
"CatalogName": "hive",
"Name": "default",
"Location": "oss://xxx"
}
}Error codes
See for a complete list.
Release notes
See 变更详情 for a complete list.