{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daytona-io/json-schema/daytona-io-region-schema.json",
  "title": "Region",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daytona-io-organizations-api-openapi.yml#/components/schemas/Region",
  "properties": {
    "id": {
      "description": "Region ID",
      "type": "string"
    },
    "name": {
      "description": "Region name",
      "type": "string"
    },
    "organizationId": {
      "description": "Organization ID",
      "type": [
        "string",
        "null"
      ]
    },
    "regionType": {
      "allOf": [
        {
          "$ref": "#/$defs/RegionType"
        }
      ],
      "description": "The type of the region"
    },
    "createdAt": {
      "description": "Creation timestamp",
      "type": "string"
    },
    "updatedAt": {
      "description": "Last update timestamp",
      "type": "string"
    },
    "proxyUrl": {
      "description": "Proxy URL for the region",
      "type": [
        "string",
        "null"
      ]
    },
    "sshGatewayUrl": {
      "description": "SSH Gateway URL for the region",
      "type": [
        "string",
        "null"
      ]
    },
    "snapshotManagerUrl": {
      "description": "Snapshot Manager URL for the region",
      "type": [
        "string",
        "null"
      ]
    },
    "otelEndpoint": {
      "description": "OTel collector endpoint for sandboxes created in this region. When set, sandbox OTel data is sent to this endpoint instead of the Daytona-hosted collector and will not be available in the Daytona analytics API or dashboard.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "createdAt",
    "id",
    "name",
    "regionType",
    "updatedAt"
  ],
  "type": "object",
  "$defs": {
    "RegionType": {
      "description": "The type of the region",
      "enum": [
        "shared",
        "dedicated",
        "custom"
      ],
      "type": "string"
    }
  }
}