Returns the details of a 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 table ID. |
2 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. Call the ListInstances API to obtain it. |
实例ID pairec-cn-test1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
28C5E01-ABF6-5AA8-B9FC-B3BA05DECC77 |
| Name |
string |
The table name. |
test_table |
| Description |
string |
The table description. |
this is a test table |
| ResourceId |
string |
The resource ID. |
reso-wkgo*** |
| ResourceType |
string |
Maxcompute |
|
| ResourceUri |
string |
test |
|
| TableName |
string |
The name of the table in the database. |
table_mysql |
| Type |
string |
The table type. Valid values:
|
MaxCompute |
| Module |
string |
The table module. Valid values:
|
ABTest |
| CanDelete |
boolean |
Indicates whether the table can be deleted. The value is |
false |
| GmtCreateTime |
string |
The creation time. |
2021-12-15:24:33 |
| GmtModifiedTime |
string |
The modification time. |
2021-12-15:24:33 |
| Fields |
array<object> |
The fields in the table. |
|
|
object |
Information about a field. |
||
| Name |
string |
The field name. |
gender |
| Meaning |
string |
The field meaning. |
the gender of people |
| Type |
string |
The field type. |
BIGINT |
| IsDimensionField |
boolean |
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 tables. |
https://dmc-xxx.com/dm/table/xxx |
| TableMetaId |
string |
The table ID. |
3 |
| GmtImportedTime |
string |
The import time. |
2021-12-15T23:24:33.132+08:00 |
| Config |
string |
Additional configurations for the table, provided as a JSON string. |
{"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.