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

    1. {
    2. "msg": "OK",
    3. "data": [
    4. "db1", "db2", "db3", ...
    5. ],
    6. "count": 3
    7. }
    • 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

    1. {
    2. "msg": "OK",
    3. "code": 0,
    4. "tbl1", "tbl2", "tbl3", ...
    5. ],
    6. "count": 0
    7. }
    • 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

    1. GET /api/meta/namespaces/default/databases/db1/tables/tbl1/schema
    2. {
    3. "msg": "success",
    4. "data": {
    5. "tbl1": {
    6. "schema": [{
    7. "Field": "k1",
    8. "Type": "INT",
    9. "Extra": "",
    10. "Default": null,
    11. "Key": "true"
    12. },
    13. {
    14. "Field": "k2",
    15. "Type": "INT",
    16. "Null": "Yes",
    17. "Extra": "",
    18. "Default": null,
    19. "Key": "true"
    20. }
    21. ],
    22. "is_base": true
    23. }
    24. },
    25. "count": 0
    • The data field returns the table structure information of the base table or rollup table.