获取数据湖中数据表的详细信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
dlf:GetTable |
get |
*全部资源
|
无 | 无 |
请求语法
GET /dlf/v1/{catalogId}/databases/{database}/tables/{table} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| catalogId |
string |
是 |
数据目录 ID。 |
clg-paimon-xxxx |
| database |
string |
否 |
数据库名称。 |
database_name |
| table |
string |
否 |
数据表名称。 |
table_name |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
| Table |
数据表。 |
示例
正常返回示例
JSON格式
{
"id": "1",
"name": "table_test",
"path": "oss://clg-paimon-xxx/db-xxx/tbl-xxxx",
"isExternal": true,
"schemaId": 1,
"schema": {
"primaryKeys": [
"order_id"
],
"options": {
"key": "bucket : 5"
},
"comment": "description",
"partitionKeys": [
"pt"
],
"fields": [
{
"name": "order_id",
"description": "description",
"id": 1,
"type": {
"type": "STRING",
"fields": [
{
"name": "order_id",
"description": "description",
"id": 1,
"type": {
"type": "STRING",
"fields": [
{
"name": "order_id",
"description": "description",
"id": 1,
"type": {
"type": "STRING",
"fields": []
}
}
]
}
}
]
}
}
]
},
"owner": "acs:ram::[accountId]:root",
"createdAt": 1741266704867,
"createdBy": "acs:ram::[accountId]:root",
"updatedAt": 1741266704867,
"updatedBy": "acs:ram::[accountId]:root",
"storageClass": "",
"storageAction": "",
"storageActionTimestamp": 0
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?