GetTableMeta
Retrieves the details of a data table.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pairec:GetTableMeta |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/tablemetas/{TableMetaId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TableMetaId |
string |
Yes |
The ID of the data table. |
2 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. You can call the ListInstances operation to obtain the instance ID. |
Instance ID pairec-cn-test1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
28C5E01-ABF6-5AA8-B9FC-B3BA05DECC77 |
| 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 ID of the resource. |
reso-wkgo*** |
| ResourceType |
string |
The type of the resource. |
Maxcompute |
| ResourceUri |
string |
The URI of the resource. |
test |
| 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. If the table is referenced elsewhere, false is returned. |
false |
| GmtCreateTime |
string |
The creation time. |
2021-12-15:24:33 |
| GmtModifiedTime |
string |
The update time. |
2021-12-15:24:33 |
| Fields |
array<object> |
The list of fields in the table. |
|
|
object |
The field information. |
||
| Name |
string |
The name of the field. |
gender |
| Meaning |
string |
The meaning of the field. |
the gender of people |
| Type |
string |
The 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 if the table is a MaxCompute table. Otherwise, this field is empty. |
https://dmc-xxx.com/dm/table/xxx |
| TableMetaId |
string |
The ID of the data table. |
3 |
| GmtImportedTime |
string |
The time when the field was imported. The time is in ISO 8601 format and includes the time zone offset. |
2021-12-15T23:24:33.132+08:00 |
| Config |
string |
The additional configurations of the data table. |
{"table_type":"item"} |
Examples
Success response
JSON format
{
"RequestId": "28C5E01-ABF6-5AA8-B9FC-B3BA05DECC77",
"Name": "test_table",
"Description": "this is a test table",
"ResourceId": "reso-wkgo***",
"ResourceType": "Maxcompute",
"ResourceUri": "test",
"TableName": "table_mysql",
"Type": "MaxCompute",
"Module": "ABTest",
"CanDelete": false,
"GmtCreateTime": "2021-12-15:24:33",
"GmtModifiedTime": "2021-12-15:24:33",
"Fields": [
{
"Name": "gender",
"Meaning": "the gender of people",
"Type": "BIGINT",
"IsDimensionField": false
}
],
"Url": "https://dmc-xxx.com/dm/table/xxx\n",
"TableMetaId": "3",
"GmtImportedTime": "2021-12-15T23:24:33.132+08:00",
"Config": "{\"table_type\":\"item\"}"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.