Skip to main content
GET
/
project
/
{project_id}
/
postgres
/
capabilities
Get available PostgreSQL provisioning options
curl --request GET \
  --url https://api.ubicloud.com/project/{project_id}/postgres/capabilities \
  --header 'Authorization: Bearer <token>'
{
  "option_tree": {},
  "metadata": {
    "flavor": {},
    "location": {},
    "family": {},
    "size": {},
    "ha_type": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required

ID of the project

Pattern: ^pj[0-9a-hj-km-np-tv-z]{24}$
Example:

"pjkkmx0f2vke4h36nk9cm8v8q0"

Response

PostgreSQL capabilities tree and metadata

Tree of valid option combinations and metadata for each option value. The option_tree encodes parent-child dependencies: traverse from flavor -> location -> family -> size -> storage_size -> ha_type (with version branching from flavor). Only combinations present in the tree are valid for provisioning.

option_tree
object
required

Nested object where each level maps option values to their valid children.

metadata
object
required

Display info for option values referenced in the tree