GetTableProfile
Retrieves the details of the table data profile.
Operation description
To use the data profile, you must first enable location hosting for the OSS bucket of the table.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dlf:GetTableProfile |
get |
*All Resource
|
None | None |
Request syntax
GET /webapi/metastorehouse/catalog/database/tableprofile HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CatalogId |
string |
No |
The data catalog ID. The default value is the ID of the Alibaba Cloud account. |
1344371 |
| DatabaseName |
string |
Yes |
The name of the metadata database. |
test_db |
| TableName |
string |
Yes |
The name of the metadata table. |
test_tbl |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response |
||
| Code |
string |
The error code. |
InternalError |
| Message |
string |
The error message. |
internal server error |
| RequestId |
string |
The ID of the request. |
97434FA4-A6B2-1AE4-A174-76964F29C759 |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| TableProfile | TableProfile |
The table data profile. |
Examples
Success response
JSON format
{
"Code": "-",
"Message": "-",
"RequestId": "97434FA4-A6B2-1AE4-A174-76964F29C759",
"Success": true,
"TableProfile": {
"PartitionCnt": 3,
"FileCnt": 5,
"ObjectCnt": 5,
"FileSize": 31,
"ObjectSize": 31,
"RecordCnt": 2,
"IsPartitioned": true,
"LastModifyTime": "2023-08-16 18:02:25",
"LastAccessTime": "2023-08-22 12:14:42",
"DatabaseName": "test_db",
"TableName": "test_tbl",
"CreateTime": "2023-08-14 10:44:13",
"Location": "oss://mybucket.cn-hangzhou.oss-dls.aliyuncs.com/test_db/test_tbl/",
"AccessNum": 0,
"AccessNumWeekly": 0,
"AccessNumMonthly": 0,
"LastAccessNumTime": "",
"LatestDate": "2023-08-30 19:16:10",
"LatestAccessNumDate": "-",
"LastDdlTime": "2023-08-16 18:02:24",
"ObjectAccessNum": 0,
"ObjectAccessNumWeekly": 18,
"ObjectAccessNumMonthly": 18,
"DataSourceType": "OSS_HDFS"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.