Create a read replica of a PostgreSQL service
Services
Create a read replica of a PostgreSQL service
Creates a new read replica of the specified PostgreSQL service. The replica shares credentials with the primary and uses the same resource allocation.
POST
Create a read replica of a PostgreSQL service
Authorizations
Bearer token for authentication. Format: 'Bearer {token}'
Headers
Workspace ID (uses default workspace if not provided)
Path Parameters
Service ID
Body
application/json
Response
Create a read replica of a PostgreSQL service
Api_V1_Entities_Service model
Service UUID
Service name
Display name
Service type (postgres, shared_storage)
Associated project UUID
Assigned resource UUID
DEPRECATED: use resource_id instead
Creation timestamp
Last update timestamp
Connection details for the service
Example:
{
"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"
}
}
