{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cockroach-labs/json-schema/cockroach-labs-list-blackout-windows-response-schema.json",
  "title": "ListBlackoutWindowsResponse",
  "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/ListBlackoutWindowsResponse",
  "type": "object",
  "properties": {
    "blackout_windows": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BlackoutWindow"
      }
    },
    "pagination": {
      "$ref": "#/$defs/KeysetPaginationResponse"
    }
  },
  "$defs": {
    "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.",
      "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"
      ],
      "title": "BlackoutWindow"
    },
    "KeysetPaginationResponse": {
      "type": "object",
      "properties": {
        "next_page": {
          "type": "string"
        },
        "previous_page": {
          "type": "string"
        }
      }
    }
  }
}