ListStoragePartitionsInfo
Retrieves storage details for the partitions of a partitioned table in a MaxCompute project.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:ListStoragePartitionsInfo |
get |
*Storage
|
None | None |
Request syntax
GET /api/v1/observations/analysis/storage/projects/{project}/tables/{table}/partitionsInfo HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The MaxCompute project name. |
odps_project |
| table |
string |
Yes |
The table name. |
bank_data |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| tenantId |
string |
No |
The tenant ID. You can find this ID in the MaxCompute console by navigating to Tenant Management > Tenant Properties. |
40713753659**** |
| region |
string |
No |
The region ID. |
cn-beijing |
| date |
string |
Yes |
The date for which to retrieve statistics. The date must be in |
20241205 |
| schema |
string |
No |
The schema that contains the table. |
schema |
| partitionPrefix |
string |
No |
The partition name. This parameter supports fuzzy matching. |
20241201 |
| types |
array |
No |
The storage types. |
|
|
string |
No |
Valid values:
|
standardStorage |
|
| orderColumn |
string |
No |
The column to sort by. |
totalFrequency |
| ascOrder |
boolean |
No |
Specifies whether to sort the results in ascending order. |
false |
| pageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. |
10 |
| pageNumber |
integer |
No |
The page number. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| requestId |
string |
The request ID. |
0be3e0bd16661643917136451ebf55 |
| httpCode |
integer |
The HTTP status code.
|
200 |
| errorCode |
string |
The error code. |
OBJECT_NOT_EXIST |
| errorMsg |
string |
The error message. |
This object does not exist. |
| data |
object |
The returned data. |
|
| storagePartitionInfoList |
array<object> |
The storage information for the partitions. |
|
|
object |
The storage information for a partition. |
||
| projectName |
string |
The project name. |
odps_project |
| schemaName |
string |
The schema name. |
schema |
| tableName |
string |
The table name. |
bank_data |
| partition |
string |
The partition name. |
ds=20241201 |
| isPartitioned |
boolean |
Indicates whether the table is a partitioned table. You can ignore this parameter because this operation returns data only for partitions. |
false |
| type |
string |
The type of the object. The value is always PARTITION. |
PARTITION |
| storageType |
string |
The storage type. Valid values:
|
standard |
| totalFrequency |
integer |
The access frequency. Note
Note
|
10 |
| totalInputAmount |
number |
The total data accessed. Note
The cumulative amount of data read from all access operations. |
1 |
| totalInputAmountUnit |
string |
The unit of the total data accessed. |
GB |
| fileCount |
integer |
The number of files. |
2 |
| fileSize |
number |
The storage size. |
1 |
| fileSizeUnit |
string |
The unit of the storage size. |
GB |
| rate |
number |
The period-over-period change in the total storage usage over the last {$recentDays} days. This API operation does not return this parameter. |
1% |
| lastAccessTime |
integer |
The last access time of the partition. Note
Data collection for this metric began a gradual rollout in July 2023. Consequently, the lastAccessTime may not be recorded for a partition that has not been accessed since then or is accessed only by ALGO jobs or direct reads from Hologres. |
1694589365 |
| date |
string |
The date to which the statistics apply. |
20241205 |
| totalCount |
integer |
The total number of entries. |
57 |
| pageNumber |
integer |
The page number of the returned data. |
1 |
| pageSize |
integer |
The number of entries per page. |
10 |
Examples
Success response
JSON format
{
"requestId": "0be3e0bd16661643917136451ebf55",
"httpCode": 200,
"errorCode": "OBJECT_NOT_EXIST",
"errorMsg": "This object does not exist.",
"data": {
"storagePartitionInfoList": [
{
"projectName": "odps_project",
"schemaName": "schema",
"tableName": "bank_data",
"partition": "ds=20241201",
"isPartitioned": false,
"type": "PARTITION",
"storageType": "standard",
"totalFrequency": 10,
"totalInputAmount": 1,
"totalInputAmountUnit": "GB",
"fileCount": 2,
"fileSize": 1,
"fileSizeUnit": "GB",
"rate": 0,
"lastAccessTime": 1694589365
}
],
"date": "20241205",
"totalCount": 57,
"pageNumber": 1,
"pageSize": 10
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.