Postgres Clusters
Create Postgres Cluster
Changed onCreate a Managed Postgres cluster for the organization named in the request body. Provisioning is asynchronous: poll GET /v1/postgres/{id} until status == ready before calling database, user, extension, or credential endpoints.
post/v1/postgres
Request
- Base URLhttps://api.machines.dev
- URLhttps://api.machines.dev/v1/postgres
- AuthHTTP bearer
Request body
Example request
{
"disk_size_gb": 10,
"org_slug": "my-org",
"pg_major_version": "17",
"plan": "basic",
"pool_mode": "transaction",
"region": "iad"
}Response
Cluster accepted for provisioning
Example response
{
"data": {
"cpu_kind": "shared",
"cpus": 2,
"disk_size_gb": 10,
"memory_mb": 1024,
"pg_major_version": "17",
"plan": "basic",
"region": "iad",
"replicas": 1,
"status": "ready",
"storage_provisioned_bytes": 10737418240,
"storage_used_bytes": 5368709120
}
}Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- info
the endpoint scheme security
FlyBearerAuthwas removed from the API
- info