{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cockroach-labs/main/json-schema/cockroach-labs-cmekcluster-info-schema.json",
  "title": "CMEKClusterInfo",
  "description": "Customer-managed encryption key configuration for a cluster.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cockroach-labs-cmek-api-openapi.yml#/components/schemas/CMEKClusterInfo",
  "type": "object",
  "properties": {
    "cluster_id": {
      "type": "string",
      "description": "ID of the cluster this CMEK configuration applies to."
    },
    "status": {
      "type": "string",
      "description": "Current CMEK operational status."
    },
    "spec": {
      "$ref": "#/$defs/CMEKClusterSpecification"
    }
  },
  "$defs": {
    "CMEKClusterSpecification": {
      "type": "object",
      "description": "Specification defining the customer-managed encryption key configuration for a CockroachDB cluster.",
      "required": [
        "region_specs"
      ],
      "properties": {
        "region_specs": {
          "type": "array",
          "description": "Per-region CMEK key specifications.",
          "items": {
            "type": "object",
            "properties": {
              "region": {
                "type": "string",
                "description": "Cloud region the key applies to."
              },
              "key": {
                "type": "object",
                "description": "Key specification including type and URI."
              }
            }
          }
        }
      }
    }
  }
}