Check whether you can upgrade Postgres service to a newer version

POST /dbaas-postgres/{service}/upgrade-check

Check whether you can upgrade Postgres service to a newer version

Path parameters

  • service string Required

    Service name

    Minimum length is 0, maximum length is 63.

application/json

Body Required

  • target-version string Required

    Target version for upgrade

    Values are 14, 15, 12, 13, or 16.

Responses

POST /dbaas-postgres/{service}/upgrade-check
curl \
 -X POST https://api-ch-gva-2.exoscale.com/v2/dbaas-postgres/{service}/upgrade-check \
 -H "Content-Type: application/json" \
 -d '{"target-version":"14"}'
Request examples
{
  "target-version": "14"
}
Response examples (200)
{
  "id": "string",
  "create-time": "2024-05-04T09:42:00+00:00",
  "result": "string",
  "result-codes": [
    {
      "code": "string",
      "dbname": "string"
    }
  ],
  "success": true,
  "task-type": "string"
}