GET /v1/databases
from metadata.sdk import configure
from metadata.sdk.entities import Databases
configure(
host="https://your-company.open-metadata.org/api",
jwt_token="your-jwt-token"
)
# List with pagination
page = Databases.list(limit=50, fields=["owners", "tags"])
for db in page.entities:
print(f"{db.fullyQualifiedName}")
if db.owners:
print(f" Owners: {[o.name for o in db.owners]}")
# List all with auto-pagination
all_databases = Databases.list_all(batch_size=100)
for database in all_databases:
print(f"{database.fullyQualifiedName}")
{
"data": [
{
"id": "1d08c2c6-cea7-4adf-9043-0f6a6aaf9721",
"name": "default",
"fullyQualifiedName": "mysql_sample.default",
"tags": [],
"version": 0.1,
"updatedAt": 1769982658682,
"updatedBy": "admin",
"href": "http://localhost:8585/api/v1/databases/1d08c2c6-cea7-4adf-9043-0f6a6aaf9721",
"owners": [],
"service": {
"id": "4724c3cb-d4b8-4ac0-aa55-e8bb66f01ac3",
"type": "databaseService",
"name": "mysql_sample",
"fullyQualifiedName": "mysql_sample",
"displayName": "mysql_sample",
"deleted": false,
"href": "http://localhost:8585/api/v1/services/databaseServices/4724c3cb-d4b8-4ac0-aa55-e8bb66f01ac3"
},
"serviceType": "Mysql",
"databaseSchemas": [
{
"id": "ea2cfeb5-8daa-434d-ae22-1f56c688aa86",
"type": "databaseSchema",
"name": "posts_db",
"fullyQualifiedName": "mysql_sample.default.posts_db",
"displayName": "posts_db",
"deleted": false,
"href": "http://localhost:8585/api/v1/databaseSchemas/ea2cfeb5-8daa-434d-ae22-1f56c688aa86"
}
],
"default": false,
"deleted": false,
"sourceUrl": "https://localhost:3306/posts_db",
"domains": [],
"entityStatus": "Unprocessed"
}
],
"paging": {
"after": "eyJsYXN0SWQiOiIxZDA4YzJjNi1jZWE3LTRhZGYtOTA0My0wZjZhNmFhZjk3MjEifQ==",
"total": 8
}
}
List Databases
List all databases with optional filtering and pagination
GET
/
v1
/
databases
GET /v1/databases
from metadata.sdk import configure
from metadata.sdk.entities import Databases
configure(
host="https://your-company.open-metadata.org/api",
jwt_token="your-jwt-token"
)
# List with pagination
page = Databases.list(limit=50, fields=["owners", "tags"])
for db in page.entities:
print(f"{db.fullyQualifiedName}")
if db.owners:
print(f" Owners: {[o.name for o in db.owners]}")
# List all with auto-pagination
all_databases = Databases.list_all(batch_size=100)
for database in all_databases:
print(f"{database.fullyQualifiedName}")
{
"data": [
{
"id": "1d08c2c6-cea7-4adf-9043-0f6a6aaf9721",
"name": "default",
"fullyQualifiedName": "mysql_sample.default",
"tags": [],
"version": 0.1,
"updatedAt": 1769982658682,
"updatedBy": "admin",
"href": "http://localhost:8585/api/v1/databases/1d08c2c6-cea7-4adf-9043-0f6a6aaf9721",
"owners": [],
"service": {
"id": "4724c3cb-d4b8-4ac0-aa55-e8bb66f01ac3",
"type": "databaseService",
"name": "mysql_sample",
"fullyQualifiedName": "mysql_sample",
"displayName": "mysql_sample",
"deleted": false,
"href": "http://localhost:8585/api/v1/services/databaseServices/4724c3cb-d4b8-4ac0-aa55-e8bb66f01ac3"
},
"serviceType": "Mysql",
"databaseSchemas": [
{
"id": "ea2cfeb5-8daa-434d-ae22-1f56c688aa86",
"type": "databaseSchema",
"name": "posts_db",
"fullyQualifiedName": "mysql_sample.default.posts_db",
"displayName": "posts_db",
"deleted": false,
"href": "http://localhost:8585/api/v1/databaseSchemas/ea2cfeb5-8daa-434d-ae22-1f56c688aa86"
}
],
"default": false,
"deleted": false,
"sourceUrl": "https://localhost:3306/posts_db",
"domains": [],
"entityStatus": "Unprocessed"
}
],
"paging": {
"after": "eyJsYXN0SWQiOiIxZDA4YzJjNi1jZWE3LTRhZGYtOTA0My0wZjZhNmFhZjk3MjEifQ==",
"total": 8
}
}
Documentation Index
Fetch the complete documentation index at: https://openmetadata-codex-audit-docs-codebase-alignment.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
List Databases
List all databases with optional filtering and pagination.Query Parameters
Filter by service fully qualified name.
Filter by domain fully qualified name.
Maximum number of results to return (max: 1000000).
Cursor for backward pagination.
Cursor for forward pagination.
Comma-separated list of fields to include. Valid fields:
owners, databaseSchemas, usageSummary, location, tags, certification, extension, domains, sourceHash, followers.Include
all, deleted, or non-deleted entities.GET /v1/databases
from metadata.sdk import configure
from metadata.sdk.entities import Databases
configure(
host="https://your-company.open-metadata.org/api",
jwt_token="your-jwt-token"
)
# List with pagination
page = Databases.list(limit=50, fields=["owners", "tags"])
for db in page.entities:
print(f"{db.fullyQualifiedName}")
if db.owners:
print(f" Owners: {[o.name for o in db.owners]}")
# List all with auto-pagination
all_databases = Databases.list_all(batch_size=100)
for database in all_databases:
print(f"{database.fullyQualifiedName}")
{
"data": [
{
"id": "1d08c2c6-cea7-4adf-9043-0f6a6aaf9721",
"name": "default",
"fullyQualifiedName": "mysql_sample.default",
"tags": [],
"version": 0.1,
"updatedAt": 1769982658682,
"updatedBy": "admin",
"href": "http://localhost:8585/api/v1/databases/1d08c2c6-cea7-4adf-9043-0f6a6aaf9721",
"owners": [],
"service": {
"id": "4724c3cb-d4b8-4ac0-aa55-e8bb66f01ac3",
"type": "databaseService",
"name": "mysql_sample",
"fullyQualifiedName": "mysql_sample",
"displayName": "mysql_sample",
"deleted": false,
"href": "http://localhost:8585/api/v1/services/databaseServices/4724c3cb-d4b8-4ac0-aa55-e8bb66f01ac3"
},
"serviceType": "Mysql",
"databaseSchemas": [
{
"id": "ea2cfeb5-8daa-434d-ae22-1f56c688aa86",
"type": "databaseSchema",
"name": "posts_db",
"fullyQualifiedName": "mysql_sample.default.posts_db",
"displayName": "posts_db",
"deleted": false,
"href": "http://localhost:8585/api/v1/databaseSchemas/ea2cfeb5-8daa-434d-ae22-1f56c688aa86"
}
],
"default": false,
"deleted": false,
"sourceUrl": "https://localhost:3306/posts_db",
"domains": [],
"entityStatus": "Unprocessed"
}
],
"paging": {
"after": "eyJsYXN0SWQiOiIxZDA4YzJjNi1jZWE3LTRhZGYtOTA0My0wZjZhNmFhZjk3MjEifQ==",
"total": 8
}
}
Returns
Returns a paginated list of database objects. By default, only basic fields are included. Use thefields parameter to request additional data.
Response
Array of database objects.
Show properties
Show properties
Unique identifier for the database (UUID format).
Database name.
Fully qualified name in format
service.database.Human-readable display name.
Reference to the parent database service.
Type of database service (e.g., Snowflake, BigQuery, PostgreSQL).
List of owners (teams and users) assigned to the database. Only included when
fields contains owners.Classification tags applied to the database. Only included when
fields contains tags.Domain assignment for governance. Only included when
fields contains domain.Child schemas within this database. Only included when
fields contains databaseSchemas.Usage statistics and query counts. Only included when
fields contains usageSummary.Storage location information. Only included when
fields contains location.Custom properties defined on this database. Only included when
fields contains extension.Hash of the source metadata for change detection. Only included when
fields contains sourceHash.Certification status for the database. Only included when
fields contains certification.Users following this database for updates. Only included when
fields contains followers.Was this page helpful?
⌘I