Retrieves a list of partition names for 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 |
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**** |
CatalogName | string | Yes | The name of the data catalog. | hive |
DbName | string | Yes | The name of the database. | default |
TableName | string | Yes | The name of the table. | table_name |
NextToken | string | No | The token that is used to retrieve the next page of results. You do not need to specify this parameter for the first call.
| f056501ada12**** |
MaxResults | integer | No | The number of entries to return on each page. The maximum value is 100. | 20 |
WorkspaceId | integer | No | The ID of the workspace. | 12**** |
Response elements
Element | Type | Description | Example |
object | Schema of Response. | ||
RequestId | string | The ID of the request, used for log tracing and troubleshooting. | 0C1CB646-1DE4-4AD0-B4A4-7D47DD52**** |
Success | boolean | Indicates whether the request was successful. Valid values:
| true |
ErrorCode | string | The error code that is returned if the request fails. | UnknownError |
ErrorMessage | string | The error message that is returned if the request fails. | UnknownError |
| PartitionNameList | array | A list of partition names. | |
string | The partition name. | part_1 | |
NextToken | string | The token to retrieve the next page of results. | NesLoKLEdIZrKhDT7I2gS**** |
MaxResults | integer | The number of entries returned on each page. | 20 |
Examples
Success response
JSON format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52****",
"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.