{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thenile/main/json-schema/thenile-unauthenticated-provision-database-response-schema.json",
  "title": "UnauthenticatedProvisionDatabaseResponse",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thenile-global-openapi.yml#/components/schemas/UnauthenticatedProvisionDatabaseResponse",
  "required": [
    "credentialId",
    "databaseId",
    "databaseName",
    "dbHost",
    "env",
    "password",
    "region",
    "sharded",
    "workspaceSlug"
  ],
  "type": "object",
  "properties": {
    "databaseId": {
      "type": "string"
    },
    "databaseName": {
      "type": "string"
    },
    "workspaceSlug": {
      "type": "string"
    },
    "region": {
      "type": "string",
      "enum": [
        "AWS_US_WEST_2",
        "AWS_US_EAST_1",
        "AWS_EU_CENTRAL_1",
        "AZURE_EASTUS"
      ]
    },
    "sharded": {
      "type": "boolean"
    },
    "apiHost": {
      "type": [
        "string",
        "null"
      ],
      "description": "Public database API URL; null for un-sharded databases.",
      "format": "uri"
    },
    "dbHost": {
      "type": "string",
      "format": "uri"
    },
    "credentialId": {
      "type": "string"
    },
    "password": {
      "type": "string"
    },
    "env": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}