{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cockroach-labs/json-schema/cockroach-labs-edit-egress-rule-body-schema.json",
  "title": "EditEgressRuleRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cockroach-labs-egress-rules-api-openapi.yml#/components/schemas/EditEgressRuleBody",
  "type": "object",
  "properties": {
    "description": {
      "description": "description is text that serves to document the rules purpose.",
      "type": "string"
    },
    "destination": {
      "description": "destination is a CIDR range or fully-qualified domain name to which\noutgoing traffic should be allowed. This field is required.",
      "type": "string"
    },
    "idempotency_key": {
      "description": "idempotency_key uniquely identifies this request. If not set, it will be\nset by the server.",
      "type": "string"
    },
    "paths": {
      "description": "Deprecated: This field is ignored and will be removed in the next version.\npaths are the allowed URL paths. If empty, all paths are allowed. Only\nvalid if Type=\"FQDN\".",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ports": {
      "description": "ports are the allowed ports for TCP protocol. If empty, all ports are\nallowed.",
      "type": "array",
      "items": {
        "format": "int32",
        "type": "integer"
      }
    },
    "type": {
      "description": "type is the destination type of this rule. Example values are\nFQDN or CIDR. This field is required.",
      "type": "string"
    }
  }
}