获取某个MaxCompute项目内的表存储明细。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
odps:ListStorageTablesInfo |
get |
*Storage
|
无 | 无 |
请求语法
GET /api/v1/observations/analysis/storage/projects/{project}/tablesInfo HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| project |
string |
是 |
MaxCompute 项目名称。 |
odps_project |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| tenantId |
string |
否 |
租户 ID。可以通过登录 MaxCompute 控制台,在左侧导航栏选择租户管理>租户属性查看。 |
28074710977**** |
| region |
string |
否 |
地域 ID。 |
cn-beijing |
| date |
string |
是 |
统计日期,以天为级别,时间参数填写为 |
20241205 |
| recentDays |
integer |
否 |
同比对比天数。 |
1 |
| schema |
string |
否 |
归属 Schema。 |
schema |
| tablePrefix |
string |
否 |
表名称(模糊匹配)。 |
bank |
| types |
array |
否 |
存储类型。 |
|
|
string |
否 |
存储类型。 |
standardStorage |
|
| orderColumn |
string |
否 |
排序列。 |
totalFrequency |
| ascOrder |
boolean |
否 |
是否升序排列。 |
false |
| pageSize |
integer |
否 |
每页返回数目,默认为 10。 |
10 |
| pageNumber |
integer |
否 |
分页页码。 |
1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
请求返回参数。 |
||
| requestId |
string |
请求 ID。 |
0bc12e6a16679892465424670db3eb |
| httpCode |
integer |
HTTP 状态码。
|
200 |
| errorCode |
string |
错误码。 |
OBJECT_NOT_EXIST |
| errorMsg |
string |
错误信息。 |
This object does not exist. |
| data |
object |
请求返回结果。 |
|
| storageTableInfoList |
array<object> |
表存储信息列表。 |
|
|
object |
表存储信息列表。 |
||
| date |
string |
统计日期(不会返回)。 |
20241205 |
| projectName |
string |
项目名称。 |
odps_project |
| schemaName |
string |
Schema 名称。 |
schema |
| tableName |
string |
表名称。 |
bank_data |
| isPartitioned |
boolean |
是否分区表。 |
false |
| storageType |
string |
表存储类型。
|
standard |
| lastAccessTime |
integer |
表的数据最后访问时间,当表为非分区表时有此返回值。 说明
该数据从 2023 年 7 月陆续升级采集,在升级后没有被访问过或者通过 ALGO 作业、Hologres 直读方式访问的无法采集到 last_access_time。 |
1694589365 |
| totalStorageFileCount |
integer |
总文件数。 |
2 |
| totalStorage |
number |
总存储用量。分区表为各分区存储用量之和。若各分区存储类型不一致,则为各类型存储用量之和。 |
600 |
| totalStorageUnit |
string |
存储用量单位。 |
KB |
| rate |
number |
总存储量近{$recentDays}天同比。 |
0 |
| standardStorageFileCount |
integer |
标准存储文件数。 |
2 |
| standardStorage |
number |
标准存储用量。 |
600 |
| standardStorageUnit |
string |
标准存储用量单位。 |
KB |
| longTermStorageFileCount |
integer |
长期存储文件数。 |
0 |
| longTermStorage |
number |
长期存储用量。 |
0 |
| longTermStorageUnit |
string |
长期存储用量单位。 |
B |
| lowFreqStorageFileCount |
integer |
低频存储文件数。 |
0 |
| lowFreqStorage |
number |
低频存储用量。 |
0 |
| lowFreqStorageUnit |
string |
低频存储用量单位。 |
B |
| totalFrequency |
integer |
访问频次。 说明
说明
|
10 |
| totalInputAmount |
number |
访问数据总量。 说明
所有访问行为读取的数据量。 |
1 |
| totalInputAmountUnit |
string |
访问数据总量单位。 |
GB |
| date |
string |
统计日期。 |
20241205 |
| totalCount |
integer |
返回结果的总数量。 |
1 |
| pageNumber |
integer |
分页页码。 |
1 |
| pageSize |
integer |
每页记录数。 |
10 |
示例
正常返回示例
JSON格式
{
"requestId": "0bc12e6a16679892465424670db3eb",
"httpCode": 200,
"errorCode": "OBJECT_NOT_EXIST",
"errorMsg": "This object does not exist.\n",
"data": {
"storageTableInfoList": [
{
"date": "20241205",
"projectName": "odps_project",
"schemaName": "schema",
"tableName": "bank_data",
"isPartitioned": false,
"storageType": "standard",
"lastAccessTime": 1694589365,
"totalStorageFileCount": 2,
"totalStorage": 600,
"totalStorageUnit": "KB",
"rate": 0,
"standardStorageFileCount": 2,
"standardStorage": 600,
"standardStorageUnit": "KB",
"longTermStorageFileCount": 0,
"longTermStorage": 0,
"longTermStorageUnit": "B",
"lowFreqStorageFileCount": 0,
"lowFreqStorage": 0,
"lowFreqStorageUnit": "B",
"totalFrequency": 10,
"totalInputAmount": 1,
"totalInputAmountUnit": "GB"
}
],
"date": "20241205",
"totalCount": 1,
"pageNumber": 1,
"pageSize": 10
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。