Creates a standalone service (database or shared storage) that can be shared across multiple applications in a project.
Bearer token for authentication. Format: 'Bearer {token}'
Workspace ID (uses default workspace if not provided)
Create a new service
Service type: 'postgres' (PostgreSQL database), 'shared_storage' (shared persistent volume)
postgres, shared_storage UUID of the project to create the service in
UUID of the compute resource to provision the service on
Human-readable display name for the service
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)
PostgreSQL version (e.g., '15', '16'). Only for postgres type.
Enable public internet access: '0' disabled, '1' enabled. For postgres type.
0, 1 Automatically inject connection environment variables into parent application
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'.
Container mount path (e.g., /data). For shared_storage type.
Access mode: 'RWO' (single node read-write), 'RWX' (multi-node read-write). For shared_storage type.
RWO, RWX Create a new service
Api_V1_Entities_Service model
Service UUID
Service name
Display name
Service type (postgres, shared_storage)
Associated project UUID
Assigned resource UUID
Creation timestamp
Last update timestamp
Connection details for the service
{
"internal": {
"hostname": "my-service-xxx.internal",
"database": "db_name",
"port": 5432,
"username": "db_user",
"password": "db_password",
"connection_url": "postgres://db_user:db_password@my-service-xxx.internal:5432/db_name"
},
"external": {
"external_connection_url": "postgres://db_user:db_password@my-service-xxx.external:5432/db_name",
"psql_command": "PGPASSWORD=db_password psql -h my-service-xxx.external -U db_user db_name"
}
}