{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudpepper-io/json-schema/cloudpepper-io-instance-schema.json",
  "title": "Instance",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudpepper-io-openapi.yml#/components/schemas/Instance",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier for the instance"
    },
    "parentId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Parent instance ID (set on staging instances)"
    },
    "name": {
      "type": "string",
      "description": "Instance name (typically used as database name)"
    },
    "domain": {
      "type": "string",
      "description": "Primary domain name for the instance"
    },
    "aliasDomains": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Additional domain aliases for this instance"
    },
    "redirectDomains": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Domains that redirect to the primary domain"
    },
    "status": {
      "type": "string",
      "enum": [
        "creating",
        "deleting",
        "error",
        "modifying",
        "started",
        "restarting",
        "stopped",
        "stopping"
      ],
      "description": "Current instance status"
    },
    "serverId": {
      "type": "string",
      "format": "uuid",
      "description": "ID of the server hosting this instance"
    }
  }
}