Create a DBaaS Postgres database
Path parameters
-
Service name
Minimum length is
0
, maximum length is63
.
Body Required
-
Service database name
Minimum length is
1
, maximum length is40
. -
lc-collate string
Default string sort order (LC_COLLATE) for PostgreSQL database
Maximum length is
128
. -
lc-ctype string
Default character classification (LC_CTYPE) for PostgreSQL database
Maximum length is
128
.
POST /dbaas-postgres/{service-name}/database
curl \
-X POST https://api-ch-gva-2.exoscale.com/v2/dbaas-postgres/{service-name}/database \
-H "Content-Type: application/json" \
-d '{"database-name":"string","lc-collate":"string","lc-ctype":"string"}'
Request examples
{
"database-name": "string",
"lc-collate": "string",
"lc-ctype": "string"
}
Response examples (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}