All Products
Search
Document Center

Data Lake Formation:ListPartitionsProfile

Last Updated:Sep 08, 2025

Obtains the details of a partition data profile.

Operation description

To use a data profile, you must first host the OSS bucket of the table.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dlf:ListPartitionsProfilelist
*All Resources
*
    none
none

Request syntax

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

Request parameters

ParameterTypeRequiredDescriptionExample
CatalogIdstringNo

The ID of the data directory. By default, the ID of the primary account is entered.

1344371
DatabaseNamestringYes

The name of the metadatabase.

test_db
TableNamestringNo

The name of the metadata table.

test_tbl
PageNumberintegerNo

Page number

1
PageSizeintegerNo

The number of entries per page.

20
PartitionNamesarrayNo

The names of partitions.

stringNo

The name of the partition.

year=3/month=1

Response parameters

ParameterTypeDescriptionExample
object

Response

Codestring

The error code.

-
Messagestring

The error message.

-
RequestIdstring

The request ID.

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

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Totalinteger

The total number of entries returned.

10
Dataarray

The partition data profiles.

dataPartitionProfile

The partition data profile.

LatestDatestring

The time when the metadata warehouse was updated.

2023-08-30 19:16:10
LatestAccessNumDatestring

The time when the access frequency is updated. This parameter is obsolete.

-

Examples

Sample success responses

JSONformat

{
  "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

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-03-21The internal configuration of the API is changed, but the call is not affectedView Change Details