Databases
A Database is a container within a Database Service. It holds Database Schemas, which in turn contain Tables.Entity schema follows the OpenMetadata Standard.
Entity Hierarchy
Databases sit between Services and Schemas in the hierarchy:Inheritance
When you set an owner or domain on a Database, it is inherited by all child schemas and tables.API Endpoints
| Method | Endpoint | Description |
|---|---|---|
PUT | /v1/databases | Create or update a database |
POST | /v1/databases | Create a database (POST variant) |
GET | /v1/databases | List databases |
GET | /v1/databases/{id} | Get by ID |
GET | /v1/databases/name/{fqn} | Get by FQN |
PATCH | /v1/databases/{id} | Update by ID |
PATCH | /v1/databases/name/{fqn} | Update by name |
DELETE | /v1/databases/{id} | Delete by ID |
DELETE | /v1/databases/name/{fqn} | Delete by name |
PUT | /v1/databases/restore | Restore soft-deleted database |
GET | /v1/databases/{id}/versions | List versions |
GET | /v1/databases/{id}/versions/{version} | Get specific version |
GET | /v1/databases/name/{fqn}/export | Export to CSV |
GET | /v1/databases/name/{fqn}/exportAsync | Export to CSV (async) |
PUT | /v1/databases/name/{fqn}/import | Import from CSV |
PUT | /v1/databases/name/{fqn}/importAsync | Import from CSV (async) |
PUT | /v1/databases/{id}/followers | Add follower |
DELETE | /v1/databases/{id}/followers/{userId} | Remove follower |
PUT | /v1/databases/{id}/vote | Add/update vote |
GET | /v1/databases/{id}/profilerConfig | Get profiler config |
PUT | /v1/databases/{id}/profilerConfig | Set profiler config |
DELETE | /v1/databases/{id}/profilerConfig | Delete profiler config |