Queries table names in a data lake.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListDataLakeTableName |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| 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*** |
| CatalogName |
string |
Yes |
The name of the data catalog. |
hive |
| DbName |
string |
Yes |
The database name. |
default |
| TableNamePattern |
string |
No |
A regular expression used to filter table names. |
.* |
| NextToken |
string |
No |
The token used to retrieve the next page of results. Valid values:
|
f056501ada12c1cc |
| MaxResults |
integer |
No |
The number of records per page. Valid values: 1 to 100. |
20 |
| TableType |
string |
No |
The type of the data table. Valid values:
|
MANAGED_TABLE |
| WorkspaceId |
integer |
No |
The workspace ID. |
12**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. You can use the ID to query logs and troubleshoot issues. |
C5B8E84B-42B6-4374-AD5A-6264E1753378 |
| Success |
boolean |
Whether the request was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code returned if the request failed. |
UnknownError |
| ErrorMessage |
string |
The error message returned if the request failed. |
UnknownError |
| TableNameList |
array |
The table names. |
|
|
string |
The table name. |
test_name |
|
| NextToken |
string |
The token for retrieving the next page of results. |
NesLoKLEdIZrKhDT7I2gS**** |
| MaxResults |
integer |
The number of records per page. |
20 |
Examples
Success response
JSON format
{
"RequestId": "C5B8E84B-42B6-4374-AD5A-6264E1753378",
"Success": true,
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"TableNameList": [
"test_name"
],
"NextToken": "NesLoKLEdIZrKhDT7I2gS****",
"MaxResults": 20
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.