{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-firewall/json-schema/microsoft-azure-firewall-idpsquery-object-schema.json",
  "title": "IDPSQueryObject",
  "description": "Will describe the query to run against the IDPS signatures DB",
  "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/IDPSQueryObject",
  "type": "object",
  "properties": {
    "filters": {
      "type": "array",
      "description": "Contain all filters names and values",
      "items": {
        "$ref": "#/$defs/FilterItems"
      },
      "x-ms-identifiers": []
    },
    "search": {
      "type": "string",
      "description": "Search term in all columns"
    },
    "orderBy": {
      "$ref": "#/$defs/OrderBy",
      "description": "Column to sort response by"
    },
    "resultsPerPage": {
      "type": "integer",
      "format": "int32",
      "description": "The number of the results to return in each page",
      "minimum": 1,
      "maximum": 1000
    },
    "skip": {
      "type": "integer",
      "format": "int32",
      "description": "The number of records matching the filter to skip"
    }
  },
  "$defs": {
    "FilterItems": {
      "type": "object",
      "description": "Will contain the filter name and values to operate on",
      "properties": {
        "field": {
          "type": "string",
          "description": "The name of the field we would like to filter"
        },
        "values": {
          "type": "array",
          "description": "List of values to filter the current field by",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "OrderBy": {
      "type": "object",
      "description": "Describes a column to sort",
      "properties": {
        "field": {
          "type": "string",
          "description": "Describes the actual column name to sort by"
        },
        "order": {
          "$ref": "./common.json#/definitions/FirewallPolicyIDPSQuerySortOrder",
          "description": "Describes if results should be in ascending/descending order"
        }
      }
    }
  }
}