{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-ise/json-schema/cisco-ise-cdp-classification-rule-list-response-entity-schema.json",
  "title": "CdpClassificationRuleListResponseEntity",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-ise-classification-rule-api-openapi.yml#/components/schemas/CdpClassificationRuleListResponseEntity",
  "required": [
    "response",
    "version"
  ],
  "type": "object",
  "properties": {
    "response": {
      "type": "array",
      "exampleSetFlag": true,
      "items": {
        "$ref": "#/$defs/CdpClassificationRule",
        "exampleSetFlag": false
      }
    },
    "version": {
      "type": "string",
      "exampleSetFlag": true
    }
  },
  "exampleSetFlag": false,
  "$defs": {
    "CdpClassificationRule": {
      "title": "CdpClassificationRule",
      "type": "object",
      "properties": {
        "mappingsCount": {
          "type": "integer",
          "format": "int32",
          "exampleSetFlag": true
        },
        "primarySgt": {
          "type": "string",
          "exampleSetFlag": true
        },
        "rule": {
          "$ref": "#/$defs/RuleCommon",
          "exampleSetFlag": true
        },
        "secondarySgts": {
          "type": "array",
          "description": "Secondary Sgts used in the Classification Rule destination configurations",
          "exampleSetFlag": true,
          "items": {
            "type": "string",
            "exampleSetFlag": false
          }
        }
      },
      "description": "Classification Rule details",
      "exampleSetFlag": false
    },
    "Condition": {
      "title": "Condition",
      "required": [
        "conditionType"
      ],
      "type": "object",
      "properties": {
        "conditionType": {
          "type": "string",
          "description": "<ul><li>Inidicates whether the record is the condition itself(data) or a logical(or,and) aggregation</li> <li>Data type enum(reference,single) indicates than \"conditonId\" OR \"ConditionAttrs\" fields should contain condition data but not both</li> <li>Logical aggreation(and,or) enum indicates that additional conditions are present under the children field</li></ul>",
          "exampleSetFlag": true,
          "enum": [
            "ConditionAndBlock",
            "ConditionAttributes",
            "ConditionOrBlock",
            "ConditionReference",
            "LibraryConditionAndBlock",
            "LibraryConditionAttributes",
            "LibraryConditionOrBlock",
            "TimeAndDateCondition"
          ]
        },
        "isNegate": {
          "type": "boolean",
          "description": "Indicates whereas this condition is in negate mode",
          "exampleSetFlag": true
        },
        "link": {
          "$ref": "#/$defs/Link",
          "exampleSetFlag": true
        }
      },
      "description": "<ul><li>Hierarchical structure which defines a set of conditions for which authentication or authorization policy rules could be matched.</li> <li>Logical operations(AND, OR) relationship between conditions are supported</li> <li>Each condition can have subconditions with relation to logical operations</li></ul>",
      "exampleSetFlag": false
    },
    "Link": {
      "title": "Link",
      "required": [
        "href"
      ],
      "type": "object",
      "properties": {
        "href": {
          "type": "string",
          "exampleSetFlag": true
        },
        "rel": {
          "type": "string",
          "exampleSetFlag": true,
          "enum": [
            "next",
            "previous",
            "self",
            "status"
          ]
        },
        "type": {
          "type": "string",
          "exampleSetFlag": true
        }
      },
      "exampleSetFlag": false
    },
    "RuleCommon": {
      "title": "RuleCommon",
      "required": [
        "name"
      ],
      "type": "object",
      "properties": {
        "condition": {
          "$ref": "#/$defs/Condition",
          "exampleSetFlag": true
        },
        "default": {
          "type": "boolean",
          "description": "Indicates if this rule is the default one",
          "exampleSetFlag": true
        },
        "hitCounts": {
          "type": "integer",
          "description": "The amount of times the rule was matched",
          "format": "int32",
          "readOnly": true,
          "exampleSetFlag": true
        },
        "id": {
          "type": "string",
          "description": "The identifier of the rule",
          "format": "uuid",
          "readOnly": true,
          "exampleSetFlag": true
        },
        "name": {
          "type": "string",
          "description": "Rule name, [Valid characters are alphanumerics, underscore, hyphen, space, period, parentheses]",
          "exampleSetFlag": true
        },
        "rank": {
          "type": "integer",
          "description": "The rank(priority) in relation to other rules. Lower rank is higher priority.",
          "format": "int32",
          "exampleSetFlag": true
        },
        "state": {
          "type": "string",
          "description": "The state that the rule is in. A disabled rule cannot be matched.",
          "exampleSetFlag": true,
          "enum": [
            "disabled",
            "enabled",
            "monitor"
          ]
        }
      },
      "description": "Common attributes in rule authentication/authorization",
      "exampleSetFlag": false
    }
  }
}