Skip to main content

Namespace list

List direct children of the DataSource root or a specified namespace.

POST /api/open/v1/metadata/listNamespaces

Request parameters​

ParameterTypeRequiredDescription
dataSourceIdIntegerYesDataSource ID.
namespacePathArray of stringsNoParent namespace path. Omit it or send [] to list the root level.

Response fields​

data is an array. Each item contains the following fields.

FieldTypeDescription
nameStringNamespace name.
typeStringCATALOG (catalog), SCHEMA (database or schema), EXTERNAL_CATALOG (external catalog), EXTERNAL_SCHEMA (external schema).
namespacePathArray of stringsFull 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"]
}
]
}