Retrieves a list of data tables.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pairec:ListTableMetas |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/tablemetas HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Type |
string |
No |
The type of the data table. Valid values:
|
MaxCompute |
| Name |
string |
No |
The table name to filter on. |
test1 |
| Module |
string |
Yes |
The module of the data table. Valid values:
|
ABTest |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. |
10 |
| InstanceId |
string |
Yes |
The instance ID. You can get this ID by calling the ListInstances operation. |
pairec-cn-test1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77 |
| TotalCount |
integer |
The total number of data tables. |
20 |
| TableMetas |
array<object> |
The list of data tables. |
|
|
array<object> |
The metadata of a data table. |
||
| TableMetaId |
string |
The ID of the data table. |
3 |
| Name |
string |
The name of the data table. |
test_table |
| Description |
string |
The description of the data table. |
this is a test table |
| ResourceId |
string |
The resource ID. |
reso-2s416t*** |
| TableName |
string |
The name of the table in the database. |
table_mysql |
| Type |
string |
The type of the data table. Valid values:
|
MaxCompute |
| Module |
string |
The module of the data table. Valid values:
|
ABTest |
| CanDelete |
boolean |
Indicates whether the data table can be deleted. A value of |
true |
| GmtCreateTime |
string |
The time when the data table was created. |
2021-12-12 12:24:33 |
| GmtModifiedTime |
string |
The time when the data table was last modified. |
2021-12-12 12:24:33 |
| GmtImportedTime |
string |
The time when the fields were imported. |
imprecation |
| Fields |
array<object> |
The fields in the data table. |
|
|
object |
The details of a field. |
||
| Name |
string |
The name of the field. |
gender |
| Meaning |
string |
The business meaning of the field. |
the gender of people |
| Type |
string |
The data type of the field. |
BIGINT |
| IsDimensionField |
boolean |
Indicates whether the field is a dimension field. |
false |
| Url |
string |
The URL of the table in Data Map. This parameter is returned only for MaxCompute data tables. |
https://dmc-xxx.com/dm/table/xxx |
| Config |
string |
The additional configurations for the data table. |
{"table_type":"item"} |
| ResourceType |
string |
Maxcompute |
|
| ResourceUri |
string |
test |
Examples
Success response
JSON format
{
"RequestId": "728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77",
"TotalCount": 20,
"TableMetas": [
{
"TableMetaId": "3",
"Name": "test_table",
"Description": "this is a test table",
"ResourceId": "reso-2s416t***",
"TableName": "table_mysql",
"Type": "MaxCompute",
"Module": "ABTest",
"CanDelete": true,
"GmtCreateTime": "2021-12-12 12:24:33",
"GmtModifiedTime": "2021-12-12 12:24:33",
"GmtImportedTime": "imprecation",
"Fields": [
{
"Name": "gender",
"Meaning": "the gender of people",
"Type": "BIGINT",
"IsDimensionField": false
}
],
"Url": "https://dmc-xxx.com/dm/table/xxx",
"Config": "{\"table_type\":\"item\"}",
"ResourceType": "Maxcompute",
"ResourceUri": "test"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.