{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-firewall/json-schema/microsoft-azure-firewall-query-results-schema.json",
  "title": "QueryResults",
  "description": "Query result",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-firewall-subscriptions-api-openapi.yml#/components/schemas/QueryResults",
  "type": "object",
  "properties": {
    "matchingRecordsCount": {
      "type": "integer",
      "format": "int64",
      "description": "Number of total records matching the query."
    },
    "signatures": {
      "type": "array",
      "description": "Array containing the results of the query",
      "items": {
        "$ref": "#/$defs/SingleQueryResult"
      },
      "x-ms-identifiers": []
    }
  },
  "$defs": {
    "SingleQueryResult": {
      "type": "object",
      "properties": {
        "signatureId": {
          "type": "integer",
          "format": "int32",
          "description": "The ID of the signature"
        },
        "mode": {
          "$ref": "./common.json#/definitions/FirewallPolicyIDPSSignatureMode",
          "description": "The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny"
        },
        "severity": {
          "$ref": "./common.json#/definitions/FirewallPolicyIDPSSignatureSeverity",
          "description": "Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low"
        },
        "direction": {
          "$ref": "./common.json#/definitions/FirewallPolicyIDPSSignatureDirection",
          "description": "Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound, 5 - InternalInbound"
        },
        "group": {
          "type": "string",
          "description": "Describes the groups the signature belongs to"
        },
        "description": {
          "type": "string",
          "description": "Describes what is the signature enforces"
        },
        "protocol": {
          "type": "string",
          "description": "Describes the protocol the signatures is being enforced in"
        },
        "sourcePorts": {
          "type": "array",
          "description": "Describes the list of source ports related to this signature",
          "items": {
            "type": "string"
          }
        },
        "destinationPorts": {
          "type": "array",
          "description": "Describes the list of destination ports related to this signature",
          "items": {
            "type": "string"
          }
        },
        "lastUpdated": {
          "type": "string",
          "description": "Describes the last updated time of the signature (provided from 3rd party vendor)"
        },
        "inheritedFromParentPolicy": {
          "type": "boolean",
          "description": "Describes if this override is inherited from base policy or not"
        }
      }
    }
  }
}