Create a new add-on
Provisions a new add-on (database, cache, or storage) for the application. Connection credentials are automatically injected as environment variables.
Authorizations
Bearer token for authentication. Format: 'Bearer {token}'
Headers
Workspace ID (uses default workspace if not provided)
Path Parameters
Application UUID
Body
Create a new add-on
Add-on type: 'postgres' (PostgreSQL), 'mysql' (MySQL), 'valkey' (Redis-compatible cache), 'storage' (persistent volume)
postgres, mysql, valkey, storage Human-readable display name for the add-on
RAM allocation in MiB (e.g., 64, 128, 256)
Disk storage in GiB (e.g., 1, 5, 10)
CPU allocation in cores (e.g., 0.1, 0.25, 0.5)
Enable public internet access: '0' disabled, '1' enabled. For postgres type.
0, 1 Number of database instances (1 for standalone, 3/5/7 for HA cluster). For postgres type.
1, 3, 5, 7 Creation mode: 'fresh' (new database, default), 'external_replica' (replica of external PostgreSQL). For postgres type.
fresh, external_replica Hostname of the external PostgreSQL source database. Required for external_replica mode.
Port of the external PostgreSQL source database. Required for external_replica mode.
Authentication method for external replica: 'password' or 'tls'. Required for external_replica mode.
password, tls Username for replication connection to external database.
Password for replication connection (password auth). Required when auth_type is 'password'.
CA certificate for TLS authentication. Required when auth_type is 'tls'.
TLS client certificate. Required when auth_type is 'tls'.
TLS client key. Required when auth_type is 'tls'.
Enable S3 WAL archive fallback: '0' disabled, '1' enabled. For external_replica mode.
0, 1 S3 endpoint URL. Required when s3_enabled is '1'.
S3 bucket name. Required when s3_enabled is '1'.
S3 path prefix. Required when s3_enabled is '1'.
S3 access key. Required when s3_enabled is '1'.
S3 secret key. Required when s3_enabled is '1'.
Archive server name from barman-cloud-wal-archive. Required when s3_enabled is '1'.
Associated service ID for shared storage add-ons
PostgreSQL major version. Required for postgres type.
18, 17, 16, 15, 14, 13 MySQL major version. Required for mysql type.
8.2, 8.0 Valkey version. Required for valkey type.
7, 7.2 Container mount path (e.g., /data). Required for storage type unless service_id is given.
Access mode: 'RWO' (single node read-write), 'RWX' (multi-node read-write). Required for storage type unless service_id is given.
RWO, RWX Response
Create a new add-on
Api_V1_Entities_Addon model
Add-on UUID
Add-on name
Add-on type (postgres, mysql, valkey, storage, cronjob)
Display name
Current state. While provisioning: pending, processing, creating, stopped. Once running, the live Kubernetes status: healthy (postgres/mysql/valkey), bound (storage), or running when the status is unavailable. Unhealthy: degraded, degradated, failing, lost, crashloopbackoff, failed
Resource quota configuration
Add-on specific settings
Connection environment variables
Creation timestamp
Last update timestamp
Connection details for the addon

