{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cockroach-labs/json-schema/cockroach-labs-update-cluster-disruption-body-schema.json",
  "title": "UpdateClusterDisruptionBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cockroach-labs-cluster-disruption-api-openapi.yml#/components/schemas/UpdateClusterDisruptionBody",
  "type": "object",
  "properties": {
    "regional_disruptor_specifications": {
      "description": "regional_disruptor_specifications specify how regions are to be\ndisrupted. Any Cluster region that is not specified here will not be\ndisrupted. A cluster region that was previously disrupted but is not listed\nhere will be removed from disruption. To stop all disruptions, set this\nto an empty list or omit it from the request.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/RegionalDisruptorSpecification"
      }
    }
  },
  "$defs": {
    "RegionalDisruptorSpecification": {
      "description": "RegionalDisruptorSpecification represents how a region is disrupted. To\nreduce ambiguity, a RegionalDisruptorSpecification should not represent a\nhealthy cluster - there should be at least some disrupted pods.",
      "type": "object",
      "properties": {
        "azs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "azs represents each availability zone that should be disrupted. The AZs for\na cluster can be found in the db-console under the Advanced Debug -\nLocalities section. The AZ should not include the cloud provider name\nprefix.  (i.e. us-east1-a)"
        },
        "is_whole_region": {
          "description": "is_whole_region denotes whether the whole region should be disrupted.  If a\nspecific pod or az is passed, this value should be false.",
          "type": "boolean"
        },
        "pods": {
          "description": "pods represents each individual CRDB pod name that should be disrupted.\nPod names can be found using the\n[ListClusterNodes api](https://www.cockroachlabs.com/docs/api/cloud/v1#get-/api/v1/clusters/-cluster_id-/nodes).",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "region_code": {
          "description": "region_code is the cloud provider specific region code of the region. (i.e\nus-east1 for gcp, us-east-1 for aws, eastus for azure). Region names for\neach node the cluster can be found using the\n[ListClusterNodes api](https://www.cockroachlabs.com/docs/api/cloud/v1#get-/api/v1/clusters/-cluster_id-/nodes).",
          "type": "string"
        }
      },
      "required": [
        "region_code",
        "is_whole_region"
      ]
    }
  }
}