{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cockroach-labs/json-schema/cockroach-labs-add-egress-rule-body-schema.json",
  "title": "AddEgressRuleRequest",
  "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/AddEgressRuleBody",
  "type": "object",
  "properties": {
    "description": {
      "description": "description is text that serves to document the rules purpose.",
      "type": "string"
    },
    "destination": {
      "description": "destination is the endpoint (or subnetwork if CIDR) to which traffic is\nallowed.",
      "type": "string"
    },
    "idempotency_key": {
      "description": "idempotency_key uniquely identifies this request. If not set, it will be\nset by the server.",
      "type": "string"
    },
    "name": {
      "description": "name is the name of the egress rule.",
      "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 classifies the Destination field. Valid types include: \"FQDN\",\n\"CIDR\".",
      "type": "string"
    }
  },
  "required": [
    "name",
    "type",
    "destination",
    "description"
  ]
}