{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/redu-cloud/json-schema/redu-cloud-post-v1-databases-request-schema.json",
  "title": "PostV1DatabasesRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/redu-cloud-openapi-generated.yml#/components/schemas/PostV1DatabasesRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "db_name": {
      "type": "string"
    },
    "db_user": {
      "type": "string"
    },
    "db_password": {
      "type": "string"
    },
    "version": {
      "type": "string",
      "description": "\"16\" | \"15\" | \"14\""
    },
    "flavor_id": {
      "type": "string"
    },
    "network_id": {
      "type": "string"
    },
    "keypair_name": {
      "type": "string"
    },
    "security_group_names": {
      "type": "array",
      "description": "Defaults to [\"default\"]"
    },
    "extensions": {
      "type": "array",
      "description": "PostgreSQL extensions to install at provision time."
    },
    "superuser": {
      "type": "boolean",
      "description": "Grant the database user superuser privileges (default false)"
    },
    "ha": {
      "type": "boolean",
      "description": "Provision three machines with automatic failover instead of one (default false)"
    }
  },
  "required": [
    "name",
    "flavor_id",
    "network_id",
    "keypair_name"
  ]
}