Retrieves a data catalog from the data lake.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetDataLakeCatalog |
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 |
| Tid |
integer |
No |
The tenant ID. Call the GetUserActiveTenant or ListUserTenants operation to obtain this value. |
3 |
| WorkspaceId |
integer |
No |
The workspace ID. |
12**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID, which you can use to locate logs and troubleshoot issues. |
FE8EE2F1-4880-46BC-A704-5CF63EAF9A04 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code returned if the request failed. |
400 |
| ErrorMessage |
string |
The error message returned if the request failed. |
code: 404, can not find catalog, name : hiv request id: 6090E571-E5B1-1E6D-BF44-F9E10E8B7EB1 |
| Catalog | DLCatalog |
The catalog details. |
Examples
Success response
JSON format
{
"RequestId": "FE8EE2F1-4880-46BC-A704-5CF63EAF9A04",
"Success": true,
"ErrorCode": "400",
"ErrorMessage": "code: 404, can not find catalog, name : hiv request id: 6090E571-E5B1-1E6D-BF44-F9E10E8B7EB1",
"Catalog": {
"Description": "init default catalog",
"Name": "hive",
"Location": "oss://xxxx"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.