Lists the partition names of a data lake table.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListDataLakePartitionName |
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 ID of the tenant, go to the 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*** |
| CatalogName |
string |
Yes |
The name of the data catalog. |
hive |
| DbName |
string |
Yes |
The database name. |
default |
| TableName |
string |
Yes |
The name of the table. |
table_name |
| NextToken |
string |
No |
The pagination token that is used in the next request to retrieve a new page of results. Valid values:
|
f056501ada12c1cc |
| MaxResults |
integer |
No |
The number of records per page. Valid values: 1 to 100. |
20 |
| WorkspaceId |
integer |
No |
The workspace ID. |
12**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| RequestId |
string |
The request ID, which you can use to locate logs and troubleshoot issues. |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| Success |
boolean |
Indicates 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 |
| PartitionNameList |
array |
The partition names. |
|
|
string |
The partition name. |
part_1 |
|
| NextToken |
string |
The token for the next page of results. |
NesLoKLEdIZrKhDT7I2gS**** |
| MaxResults |
integer |
The number of records per page. |
20 |
Examples
Success response
JSON format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"Success": true,
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"PartitionNameList": [
"part_1"
],
"NextToken": "NesLoKLEdIZrKhDT7I2gS****",
"MaxResults": 20
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.