{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-catalyst-center/json-schema/cisco-catalyst-center-filter-group-list-response-schema.json",
  "title": "FilterGroupListResponse",
  "description": "Filter Group list response",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-catalyst-center-filtergroups-api-openapi.yml#/components/schemas/FilterGroupListResponse",
  "type": "object",
  "properties": {
    "response": {
      "type": "array",
      "description": "List of filter groups",
      "items": {
        "$ref": "#/$defs/FilterGroup"
      }
    },
    "page": {
      "$ref": "#/$defs/FilterGroupPaginationResponse"
    },
    "version": {
      "type": "string",
      "description": "The version of the response"
    }
  },
  "$defs": {
    "FilterGroup": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Filter Gorup id"
        },
        "name": {
          "type": "string",
          "description": "Filter Group name."
        },
        "type": {
          "type": "string",
          "description": "The type of the Filter Group."
        },
        "filters": {
          "type": "array",
          "description": "List of filters used in this Filter Group.",
          "items": {
            "$ref": "#/$defs/FilterGroupFilter"
          }
        }
      },
      "description": "Contains details of an filter group."
    },
    "FilterGroupFilter": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Field names which are supported by this API as filter keys",
          "enum": [
            "siteHierarchyId",
            "ssid",
            "clientHostName",
            "clientType",
            "clientDeviceType",
            "clientMacAddress",
            "clientIpAddress",
            "networkDeviceType",
            "networkDeviceOsVersion",
            "networkDeviceIpAddress",
            "networkDeviceHostName"
          ]
        },
        "operator": {
          "type": "string",
          "description": "Type of filter operator to use for querying data. `in` and `notIn` operator takes multiple values and applies the filters",
          "enum": [
            "in",
            "eq",
            "like"
          ]
        },
        "value": {
          "type": "object",
          "description": "This should be array if `operator` is `in` and `notIn`. For all other operators this should be a string or a number."
        },
        "displayValue": {
          "type": "object",
          "description": "This field stores desriptive equivalent of the `value` field. For example, this field can be used to store site hierarchy name while the `value` field stores site hierarchy id.",
          "readOnly": true
        }
      },
      "description": "Defines a filter with combination of `key`, `operator` and `value`."
    },
    "FilterGroupPaginationResponse": {
      "type": "object",
      "properties": {
        "limit": {
          "maximum": 100,
          "minimum": 1,
          "type": "integer",
          "description": "Number of records to be returned in response"
        },
        "offset": {
          "minimum": 1,
          "type": "integer",
          "description": "Starting offset of data to fetch and returned"
        },
        "count": {
          "type": "integer",
          "description": "Total number of records"
        }
      }
    }
  }
}