Create a Database
To create a new database in your PostgreSQL cluster send a POST request. It must specify both the name and the owner.
Endpoint
Use the following endpoint to create a new database in your PostgreSQL cluster:
https://api.ionos.com/databases/postgresql/clusters/{clusterId}/databases
Request
curl --request POST \
--user "[email protected]:Mb2.r5oHf-0t" \
--header "Content-Type: application/json" \
--data-binary '{
"properties": {
"databasename": "newdb",
"databaseowner":"someuser"
}
}' \
https://api.ionos.com/databases/postgresql/clusters/498ae72f-411f-11eb-9d07-046c59cc737e/databasesResponse
Last updated
Was this helpful?