Namespace list
List direct children of the DataSource root or a specified namespace.
POST /api/open/v1/metadata/listNamespaces
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| dataSourceId | Integer | Yes | DataSource ID. |
| namespacePath | Array of strings | No | Parent namespace path. Omit it or send [] to list the root level. |
Response fields
data is an array. Each item contains the following fields.
| Field | Type | Description |
|---|---|---|
| name | String | Namespace name. |
| type | String | CATALOG (catalog), SCHEMA (database or schema), EXTERNAL_CATALOG (external catalog), EXTERNAL_SCHEMA (external schema). |
| namespacePath | Array of strings | Full path to the current namespace. |
Request example (MySQL)
{
"dataSourceId": 42
}
Response example
{
"requestId": "8f75b1b8-74aa-4eea-a9c8-c4b7c54b3b74",
"code": "OK",
"msg": "Request succeeded.",
"data": [
{
"name": "sales",
"type": "SCHEMA",
"namespacePath": ["sales"]
}
]
}