{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cockroach-labs/json-schema/cockroach-labs-edit-egress-rule-response-schema.json",
  "title": "EditEgressRuleResponse",
  "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/EditEgressRuleResponse",
  "type": "object",
  "properties": {
    "Rule": {
      "$ref": "#/$defs/EgressRule"
    }
  },
  "required": [
    "rule"
  ],
  "$defs": {
    "EgressRule": {
      "description": "EgressRule represents a network egress rule.",
      "type": "object",
      "properties": {
        "cluster_id": {
          "description": "cluster_id identifies the cluster to which this egress rule applies.",
          "type": "string"
        },
        "created_at": {
          "description": "created_at is the time at which the time at which the egress rule was\ncreated.",
          "type": "string",
          "format": "date-time"
        },
        "crl_managed": {
          "description": "crl_managed indicates this egress rule is managed by CockroachDB Cloud\nservices. This field is set by the server.",
          "type": "boolean"
        },
        "description": {
          "description": "description is a longer 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"
        },
        "id": {
          "description": "id uniquely identifies this egress rule.",
          "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. Only valid 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"
          }
        },
        "state": {
          "description": "state indicates the state of the egress rule.",
          "type": "string"
        },
        "type": {
          "description": "type classifies the destination field. Valid types include: \"FQDN\",\n\"CIDR\".",
          "type": "string"
        }
      },
      "required": [
        "name",
        "id",
        "cluster_id",
        "type",
        "state",
        "crl_managed",
        "destination",
        "description"
      ],
      "title": "EgressRule"
    }
  }
}