curl -X POST "https://api.ubicloud.com/project/{project_id}/location/eu-central-h1/postgres/my-postgres-db" \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "size": "standard-2", "storage_size": 100, "version": "16", "ha_type": "sync", "tags": [ { "key": "environment", "value": "production" } ] }'
{ "id": "pgn30gjk1d1e2jj34v9x0dq4rp", "name": "my-postgres-db", "location": "eu-central-h1", "state": "creating", "connection_string": "postgresql://username:password@hostname:5432/dbname", "username": "postgres", "password": "generated_password", "hostname": "my-postgres-db.ubicloud.com", "version": "16", "target_version": "16", "ha_type": "sync", "vm_size": "standard-2", "storage_size_gib": 100, "read_replica": false, "tags": [ { "key": "environment", "value": "production" } ], "created_at": "2024-01-15T10:30:00Z" }
Create a new PostgreSQL database
^pj[0-9a-hj-km-np-tv-z]{24}$
pjkkmx0f2vke4h36nk9cm8v8q0
eu-central-h1
^[a-z0-9](?:[a-z0-9\-]{0,61}[a-z0-9])?$
{"max_connections": "100"}
{"max_client_conn": "100"}
Show PostgresTag