Databases represent database instances within server groups that support database operations. They contain database-specific configuration, size metrics, and connection information.
Model
uid
stringThe unique identifier of the database.
stack_uid
stringThe unique identifier of the stack that owns this database.
server_group_id
integerThe ID of the server group that hosts this database.
database_name
stringThe name of the database.
collation
stringThe collation setting for the database (e.g., "utf8mb4_unicode_ci").
encoding
stringThe character encoding for the database (e.g., "utf8mb4").
size_bytes
integerThe size of the database in bytes.
size_rows
integerThe number of rows across all tables in the database.
created_at_iso
stringThe ISO 8601 timestamp when the database was created.
updated_at_iso
stringThe ISO 8601 timestamp when the database was last updated.
Example
{
"uid": "database-456def789",
"stack_uid": "stack-abc123",
"server_group_id": 567,
"database_name": "myapp_production",
"collation": "utf8mb4_unicode_ci",
"encoding": "utf8mb4",
"size_bytes": 1073741824,
"size_rows": 250000,
"created_at_iso": "2023-01-15T10:30:00Z",
"updated_at_iso": "2024-01-15T09:15:00Z"
}