Queries a list of databases in an instance, cluster, or data catalog in Data Map. For DLF or StarRocks data sources, you can call this API operation to query databases in a data catalog. For StarRocks data sources, you can call this API operation to query databases in internal catalogs. For other types of data sources, you can call this API operation to query databases in an instance or cluster.
Debugging
Authorization information
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ParentMetaEntityId | string | Yes | The parent entity ID. For more information, see Concepts related to metadata entities. You can refer to the ListCrawlerTypes operation for the parent entity type.
ParentMetaEntityId format examples
Note
| mysql:rm-abc123xxx dlf-catalog:123456XXX:test_catalog |
| Name | string | No | The name. Supports fuzzy match. | test_tbl |
| Comment | string | No | The comment. Supports fuzzy match. | test comment |
| SortBy | string | No | The sort field. Default value: CreateTime. Valid values:
| CreateTime |
| Order | string | No | The sort order. Default value: Asc. Valid values:
| Asc |
| PageNumber | integer | No | The page number. Default value: 1. | 1 |
| PageSize | integer | No | The number of records per page. Default: 10. Maximum: 100. | 10 |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "9DD08926-38B9-XXXXXXX",
"Success": true,
"PagingInfo": {
"TotalCount": 1,
"PageNumber": 1,
"PageSize": 10,
"Databases": [
{
"Id": "holo-database:h-xxxx::test_db",
"Name": "test_db",
"Comment": "test comment",
"LocationUri": "oss://test-bucket/test_db",
"ParentMetaEntityId": "holo:h-xxxx",
"CreateTime": 1736852168000,
"ModifyTime": 1736852168000
}
]
}
}Error codes
For a list of error codes, visit the Service error codes.
