{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-ise/json-schema/cisco-ise-policy-set-schema.json",
  "title": "PolicySet",
  "description": "Policy set structure",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-ise-device-administration-policy-sets-api-openapi.yml#/components/schemas/PolicySet",
  "required": [
    "name",
    "serviceName"
  ],
  "type": "object",
  "properties": {
    "condition": {
      "$ref": "#/$defs/Condition",
      "exampleSetFlag": true
    },
    "default": {
      "type": "boolean",
      "description": "Flag which indicates if this policy set is the default one",
      "readOnly": true,
      "exampleSetFlag": true
    },
    "description": {
      "type": "string",
      "description": "The description for the policy set",
      "exampleSetFlag": true
    },
    "hitCounts": {
      "type": "integer",
      "description": "The amount of times the policy was matched",
      "format": "int32",
      "readOnly": true,
      "exampleSetFlag": true
    },
    "id": {
      "type": "string",
      "description": "Identifier for the policy set",
      "format": "uuid",
      "readOnly": true,
      "exampleSetFlag": true
    },
    "isProxy": {
      "type": "boolean",
      "description": "Flag which indicates if the policy set service is of type 'Proxy Sequence' or 'Allowed Protocols'",
      "exampleSetFlag": true
    },
    "link": {
      "$ref": "#/$defs/Link",
      "exampleSetFlag": true
    },
    "name": {
      "type": "string",
      "description": "Given name for the policy set, [Valid characters are alphanumerics, underscore, hyphen, space, period, parentheses]",
      "exampleSetFlag": true
    },
    "rank": {
      "type": "integer",
      "description": "The rank(priority) in relation to other policy set. Lower rank is higher priority.",
      "format": "int32",
      "exampleSetFlag": true
    },
    "serviceName": {
      "type": "string",
      "description": "Policy set service identifier - Allowed Protocols,Server Sequence..",
      "exampleSetFlag": true
    },
    "state": {
      "type": "string",
      "description": "The state that the policy set is in. A disabled policy set cannot be matched.",
      "exampleSetFlag": true,
      "enum": [
        "disabled",
        "enabled",
        "monitor"
      ]
    }
  },
  "exampleSetFlag": false,
  "$defs": {
    "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
    }
  }
}