Meta Action
Description
Get a list of all database names, arranged in alphabetical order.
Path parameters
None
Query parameters
-
Limit the number of result rows returned
offset
Pagination information, need to be used with
limit
Request body
None
Response
{
"msg": "OK",
"data": [
"db1", "db2", "db3", ...
],
"count": 3
}
- The data field returns a list of database names.
Description
Path parameters
<db_name>
Specify database
Query parameters
limit
Limit the number of result rows returned
offset
Pagination information, need to be used with
limit
Request body
None
Response
{
"msg": "OK",
"code": 0,
"tbl1", "tbl2", "tbl3", ...
],
"count": 0
}
- The data field returns a list of table names.
Description
Path parameters
<db_name>
Specify the database name
<tbl_name>
Specify table name
Query parameters
with_mv
Optional. If not specified, the table structure of the base table is returned by default. If specified, all rollup index will also be returned.
Request body
None
Response
GET /api/meta/namespaces/default/databases/db1/tables/tbl1/schema
{
"msg": "success",
"data": {
"tbl1": {
"schema": [{
"Field": "k1",
"Type": "INT",
"Extra": "",
"Default": null,
"Key": "true"
},
{
"Field": "k2",
"Type": "INT",
"Null": "Yes",
"Extra": "",
"Default": null,
"Key": "true"
}
],
"is_base": true
}
},
"count": 0
- The data field returns the table structure information of the base table or rollup table.