postgres

Create a new postgres instance

Create a new postgres instance

post/api/projects/{projectName}/postgres

Request

  • Base URL: https://api.hostim.dev
  • URL: https://api.hostim.dev/api/projects/{projectName}/postgres
  • Auth: HTTP bearer

Path parameters

projectNamestring required

Name of project to create postgres in

Request body

namestring required

The PostgreSQL name

planstring required

The plan of the PostgreSQL instance

costnumber

The cost of the PostgreSQL instance per month

typestring

The type of the PostgreSQL instance, either shared or dedicated

ramnumber

The amount of RAM in GB

coresnumber

The number of CPU cores

storageMBnumber

The amount of storage in MB

extensionsstring[]

Extensions requested for this database. Only names returned by /api/postgres/extensions are accepted. Removing a name does not uninstall the extension.

Response

Postgres created

errorstring required
messagestring required

Changes

No recorded changes to this operation across all 1 revision of this API.