All Products
Search
Document Center

Data Lake Formation:ListPartitionsProfile

Last Updated:Oct 15, 2026

Retrieves the details of partition data profiles.

Operation description

To use data profiles, you must first enable location hosting for the OSS bucket of the table.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dlf:ListPartitionsProfile

list

*All Resource

*

None None

Request syntax

GET /webapi/metastorehouse/catalog/database/tableprofile/partitionprofile/listPartitionsProfile HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

CatalogId

string

No

The ID of the data catalog. By default, the ID of the Alibaba Cloud account is used.

1344371

DatabaseName

string

Yes

The name of the metastore database.

test_db

TableName

string

No

The name of the metadata table.

test_tbl

PageNumber

integer

No

The page number.

1

PageSize

integer

No

The number of entries per page.

20

PartitionNames

array

No

The list of partition names.

string

No

The partition name.

year=3/month=1

Response elements

Element

Type

Description

Example

object

Response

Code

string

The error code.

-

Message

string

The error message.

-

RequestId

string

The request ID.

97434FA4-A6B2-1AE4-A174-76964F29C759

Success

boolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.

  • false: The request fails.

true

Total

integer

The total number of entries.

10

Data

array

The list of partition data profiles.

PartitionProfile

The partition data profile.

LatestDate

string

The update time of the metastore. The time is in the YYYY-MM-DD HH:mm:ss format.

2023-08-30 19:16:10

LatestAccessNumDate

string

[Deprecated] The update time of the access frequency.

-

Examples

Success response

JSON format

{
  "Code": "-",
  "Message": "-",
  "RequestId": "97434FA4-A6B2-1AE4-A174-76964F29C759",
  "Success": true,
  "Total": 10,
  "Data": [
    {
      "DatabaseName": "test_db",
      "TableName": "test_tbl",
      "PartitionName": "year=2023/month=1",
      "ArchiveStatus": "STANDARD",
      "CreateTime": "2023-08-16 18:02:22",
      "LastModifyTime": "2023-08-16 18:02:25",
      "LastAccessTime": "2023-08-22 12:14:42",
      "LastAccessNumTime": "",
      "Location": "oss://mybucket.cn-hangzhou.oss-dls.aliyuncs.com/test_tb/test_tbl/year=2023/month=1",
      "FileSize": 13,
      "ObjectSize": 13,
      "FileCnt": 1,
      "ObjectCnt": 1,
      "AccessNum": 0,
      "AccessNumWeekly": 0,
      "AccessNumMonthly": 0,
      "ObjectAccessNum": 0,
      "ObjectAccessNumWeekly": 4,
      "ObjectAccessNumMonthly": 4,
      "DataSourceType": "OSS_HDFS"
    }
  ],
  "LatestDate": "2023-08-30 19:16:10",
  "LatestAccessNumDate": "-"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.