{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cockroach-labs/json-schema/cockroach-labs-blackout-window-schema.json",
  "title": "BlackoutWindow",
  "description": "BlackoutWindow schedules a period of up to 14 days for an\nADVANCED cluster to block \"high-risk\" operations that\nimpact SQL availability or require CRDB pod restarts.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cockroach-labs-blackout-windows-api-openapi.yml#/components/schemas/BlackoutWindow",
  "type": "object",
  "properties": {
    "cluster_id": {
      "description": "The cluster ID that this blackout window applies to.",
      "type": "string"
    },
    "end_time": {
      "description": "The end time of the blackout window (UTC).\nCan be up to 14 days after the start time.\nMust not be more than three months after the current time.",
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "description": "The unique ID of the blackout window.",
      "type": "string"
    },
    "start_time": {
      "description": "The start time of the blackout window (UTC).\nMust be scheduled at least 7 days in advance.",
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "cluster_id",
    "start_time",
    "end_time"
  ]
}