{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-event-hubs/json-schema/microsoft-azure-event-hubs-network-rule-set-schema.json",
  "title": "NetworkRuleSet",
  "description": "Description of topic resource.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-event-hubs-namespaces-api-openapi.yml#/components/schemas/NetworkRuleSet",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "readOnly": true,
      "description": "Fully qualified resource ID for the resource."
    },
    "name": {
      "type": "string",
      "readOnly": true,
      "description": "The name of the resource."
    },
    "type": {
      "type": "string",
      "readOnly": true,
      "description": "The type of the resource."
    },
    "properties": {
      "type": "object",
      "properties": {
        "trustedServiceAccessEnabled": {
          "type": "boolean",
          "description": "Value that indicates whether Trusted Service Access is Enabled or not."
        },
        "defaultAction": {
          "type": "string",
          "description": "Default Action for Network Rule Set.",
          "enum": [
            "Allow",
            "Deny"
          ]
        },
        "virtualNetworkRules": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "subnet": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Resource ID of Virtual Network Subnet."
                  }
                }
              },
              "ignoreMissingVnetServiceEndpoint": {
                "type": "boolean",
                "description": "Value that indicates whether to ignore missing VNet Service Endpoint."
              }
            }
          },
          "description": "List VirtualNetwork Rules."
        },
        "ipRules": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "ipMask": {
                "type": "string",
                "description": "IP Mask."
              },
              "action": {
                "type": "string",
                "description": "The IP Filter Action.",
                "enum": [
                  "Allow"
                ]
              }
            }
          },
          "description": "List of IpRules."
        },
        "publicNetworkAccess": {
          "type": "string",
          "description": "This determines if traffic is allowed over public network. By default it is enabled.",
          "enum": [
            "Enabled",
            "Disabled",
            "SecuredByPerimeter"
          ],
          "default": "Enabled"
        }
      }
    },
    "systemData": {
      "$ref": "#/$defs/SystemData"
    }
  },
  "$defs": {
    "SystemData": {
      "type": "object",
      "description": "Metadata pertaining to creation and last modification of the resource.",
      "properties": {
        "createdBy": {
          "type": "string",
          "description": "The identity that created the resource."
        },
        "createdByType": {
          "type": "string",
          "description": "The type of identity that created the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ]
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource creation (UTC)."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "The identity that last modified the resource."
        },
        "lastModifiedByType": {
          "type": "string",
          "description": "The type of identity that last modified the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ]
        },
        "lastModifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource last modification (UTC)."
        }
      }
    }
  }
}