Get table metadata from a data store

get/admin/dataStores/{dataStoreId}/tables/{tableName}
Internal-Use Only

Returns table metadata from a data store for the specified data store ID and table name. This endpoint requires the "svi.administration.core_metadata" capability.

Request Samples

1

Response Samples

1{
2 "name": "person",
3 "schema": "my_schema",
4 "type": "TABLE",
5 "databaseProductName": "PostgreSQL",
6 "columns": [
7 {
8 "name": "birthday",
9 "dataType": "TIMESTAMP",
10 "required": false,
11 "primaryKeyColumn": false,
12 "ordinalPosition": 0,
13 "primaryKeySeqNo": 0
14 },
15 {
16 "name": "created_at_dttm",
17 "dataType": "TIMESTAMP",
18 "required": true,
19 "primaryKeyColumn": false,
20 "ordinalPosition": 1,
21 "primaryKeySeqNo": 0
22 },
23 {
24 "name": "created_by_user_id",
25 "dataType": "STRING",
26 "length": 255,
27 "required": true,
28 "primaryKeyColumn": false,
29 "ordinalPosition": 2,
30 "primaryKeySeqNo": 0
31 },
32 {
33 "name": "first_name",
34 "dataType": "STRING",
35 "length": 15,
36 "required": false,
37 "primaryKeyColumn": false,
38 "ordinalPosition": 3,
39 "primaryKeySeqNo": 0
40 },
41 {
42 "name": "id",
43 "dataType": "STRING",
44 "length": 36,
45 "required": true,
46 "primaryKeyColumn": true,
47 "ordinalPosition": 5,
48 "primaryKeySeqNo": 1
49 },
50 {
51 "name": "last_name",
52 "dataType": "STRING",
53 "length": 15,
54 "required": false,
55 "primaryKeyColumn": false,
56 "ordinalPosition": 6,
57 "primaryKeySeqNo": 0
58 },
59 {
60 "name": "last_updated_at_dttm",
61 "dataType": "TIMESTAMP",
62 "required": true,
63 "primaryKeyColumn": false,
64 "ordinalPosition": 7,
65 "primaryKeySeqNo": 0
66 },
67 {
68 "name": "last_updated_by_user_id",
69 "dataType": "STRING",
70 "length": 255,
71 "required": true,
72 "primaryKeyColumn": false,
73 "ordinalPosition": 8,
74 "primaryKeySeqNo": 0
75 },
76 {
77 "name": "version",
78 "dataType": "LONG",
79 "required": true,
80 "primaryKeyColumn": false,
81 "ordinalPosition": 9,
82 "primaryKeySeqNo": 0
83 }
84 ]
85}

Path Parameters

NameTypeRequiredDescription
dataStoreId
integer
true

The ID of the data store from which to get the table.

tableName
string
true

The name of the table from which to get the metadata.

Responses

StatusMeaningDescription
200OKThe request succeeded. The metadata for the table is returned.Schema
404Not FoundA data store with the specified ID was not found.Schema