{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-catalyst-center/json-schema/cisco-catalyst-center-interfaces-query-response-schema.json",
  "title": "InterfacesQueryResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-catalyst-center-interfacelist-api-openapi.yml#/components/schemas/InterfacesQueryResponse",
  "type": "object",
  "properties": {
    "response": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InterfaceWithAggregateResponse"
      }
    },
    "page": {
      "$ref": "#/$defs/PaginationResponse"
    },
    "version": {
      "type": "string"
    }
  },
  "$defs": {
    "AggregateResponseAttributes": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The field name of the aggregate attributes"
        },
        "values": {
          "type": "array",
          "description": "List of values based on the functions requested in the input data",
          "items": {
            "$ref": "#/$defs/AggregateResponseAttributes_values"
          }
        }
      }
    },
    "AggregateResponseAttributes_values": {
      "type": "object",
      "properties": {
        "key": {
          "$ref": "#/$defs/Function_1"
        },
        "value": {
          "type": "number",
          "description": "The value for the attribute field in the given time range"
        }
      }
    },
    "Function_1": {
      "type": "string",
      "description": "Type of aggregate function to apply on the field when querying   data",
      "enum": [
        "sum",
        "min",
        "max",
        "avg",
        "count",
        "latest",
        "distinctCount",
        "median"
      ]
    },
    "InterfaceAnalyticsAggregateName": {
      "type": "string",
      "description": "Field name on which the aggregate function should be applied when querying the data. The fields supported for aggregation in the API\n    response object are,\n    [rxDiscards,rxError,rxRate,rxUtilization,txDiscards,txError,txRate,txUtilization,pdPowerAdminMax, pdPowerBudgetInWatt,pdPowerConsumed,pdPowerRemaining,pdMaxPowerDrawn]",
      "enum": [
        "txDiscards",
        "rxDiscards",
        "txError",
        "rxError",
        "txRate",
        "rxRate",
        "txUtilization",
        "rxUtilization",
        "pdPowerAdminMax",
        "pdPowerBudgetInWatt",
        "pdPowerConsumed",
        "pdPowerRemaining",
        "pdMaxPowerDrawn"
      ]
    },
    "InterfaceData": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Interface instance Uuid to identify the interface across the devices",
          "format": "uuid"
        },
        "adminStatus": {
          "type": "string",
          "description": "The desired state of the interface",
          "enum": [
            "NOT_APPLICABLE",
            "UP",
            "DOWN",
            "TESTING",
            "UNKNOWN"
          ]
        },
        "description": {
          "type": "string",
          "description": "The Interface description details"
        },
        "duplexConfig": {
          "type": "string",
          "description": "The interface duplex config status.",
          "enum": [
            "HalfDuplex",
            "FullDuplex",
            "Disagree",
            "AutoNegotiate",
            "UNKNOWN"
          ]
        },
        "duplexOper": {
          "type": "string",
          "description": "The interface duplex operational status",
          "enum": [
            "HalfDuplex",
            "FullDuplex",
            "Disagree",
            "AutoNegotiate",
            "UNKNOWN"
          ]
        },
        "interfaceIfIndex": {
          "type": "integer",
          "description": "The interface ifIndex"
        },
        "interfaceType": {
          "type": "string",
          "description": "Indicates the interface is a Physical or Virtual type",
          "enum": [
            "Physical",
            "Virtual"
          ]
        },
        "ipv4Address": {
          "type": "string",
          "description": "The Interface Ipv4 Address"
        },
        "ipv6AddressList": {
          "type": "array",
          "description": "List of interface IPV6 Address",
          "items": {
            "type": "string"
          }
        },
        "isL3Interface": {
          "type": "boolean",
          "description": "Indicates the interface is a L3 interface or not"
        },
        "isWan": {
          "type": "boolean",
          "description": "Indicates the interface is a WAN Link or not"
        },
        "macAddr": {
          "type": "string",
          "description": "The Mac Address of the interface"
        },
        "mediaType": {
          "type": "string",
          "description": "The interface media type"
        },
        "name": {
          "type": "string",
          "description": "The name of the interface"
        },
        "operStatus": {
          "type": "string",
          "description": "The current operational state of the interface",
          "enum": [
            "NOT_APPLICABLE",
            "UP",
            "DOWN",
            "TESTING",
            "UNKNOWN",
            "DORMANT",
            "NOTPRESENT",
            "LOWERLAYERDOWN"
          ]
        },
        "peerStackMember": {
          "type": "integer",
          "description": "Interface peer stack member Id"
        },
        "peerStackPort": {
          "type": "string",
          "description": "Interface peer stack member port"
        },
        "portChannelId": {
          "type": "string",
          "description": "Interface Port-Channel Id"
        },
        "portMode": {
          "type": "string",
          "description": "Interface Port Mode",
          "enum": [
            "access",
            "trunk",
            "routed",
            "dynamic_auto",
            "dynamic_desirable",
            "StackWise"
          ]
        },
        "portType": {
          "type": "string",
          "description": "The Interface ifType"
        },
        "rxDiscards": {
          "type": "number",
          "description": "Rx Discards in %"
        },
        "rxError": {
          "type": "number",
          "description": "Rx Errors in %"
        },
        "rxRate": {
          "type": "number",
          "description": "Rx rate in bps"
        },
        "rxUtilization": {
          "type": "number",
          "description": "Rx Utilization in %"
        },
        "speed": {
          "type": "string",
          "description": "Speed of the Interface in Kbps"
        },
        "stackPortType": {
          "type": "string",
          "description": "The interface's stack Port Type",
          "enum": [
            "SVL",
            "DAD",
            "BACKSTACK"
          ]
        },
        "timestamp": {
          "type": "integer",
          "description": "Interface statistics data collected timestamp in UNIX epochtime in milliseconds. Value is inclusive",
          "format": "int64"
        },
        "txDiscards": {
          "type": "number",
          "description": "Tx Discards in %"
        },
        "txError": {
          "type": "number",
          "description": "Tx Errors in %"
        },
        "txRate": {
          "type": "number",
          "description": "Tx rate in bps"
        },
        "txUtilization": {
          "type": "number",
          "description": "Tx Utilization in %"
        },
        "vlanId": {
          "type": "string",
          "description": "Interface associated Vlan Identifier"
        },
        "networkDeviceId": {
          "type": "string",
          "description": "The Network Device Uuid",
          "format": "uuid"
        },
        "networkDeviceIpAddress": {
          "type": "string",
          "description": "The interface associated Network device IP address"
        },
        "networkDeviceMacAddress": {
          "type": "string",
          "description": "The interface associated Network device Mac Address",
          "format": "mac"
        },
        "siteHierarchy": {
          "$ref": "#/$defs/siteHierarchy"
        },
        "siteHierarchyId": {
          "$ref": "#/$defs/siteHierarchyId"
        },
        "poeAdminStatus": {
          "type": "string",
          "description": "Interface PoE Admin status",
          "enum": [
            null,
            "false",
            "AUTO",
            "STATIC"
          ]
        },
        "poeOperStatus": {
          "type": "string",
          "description": "The desired PoE operational status",
          "enum": [
            "OFF:POWER_DENY",
            "OFF:PD_FAULTY",
            "ON",
            "OFF",
            "OFF:ERROR_DISABLED"
          ]
        },
        "chassisId": {
          "type": "integer",
          "description": "Associated chassis Id"
        },
        "moduleId": {
          "type": "integer",
          "description": "Associated chassis Id"
        },
        "pdClassSignal": {
          "type": "string",
          "description": "The interface ifIndex",
          "enum": [
            "NONE",
            "UNKNOWN",
            "CISCO",
            "IEEE0",
            "IEEE1",
            "IEEE2",
            "IEEE3",
            "IEEE4",
            "IEEE5",
            "IEEE_UNKNOWN",
            "IEEE6",
            "IEEE7",
            "IEEE8",
            "MISMATCH"
          ]
        },
        "pdClassSpare": {
          "type": "string",
          "description": "The interface ifIndex",
          "enum": [
            "NONE",
            "UNKNOWN",
            "CISCO",
            "IEEE0",
            "IEEE1",
            "IEEE2",
            "IEEE3",
            "IEEE4",
            "IEEE5",
            "IEEE_UNKNOWN",
            "IEEE6",
            "IEEE7",
            "IEEE8",
            "MISMATCH"
          ]
        },
        "pdDeviceType": {
          "type": "string",
          "description": "PD device type"
        },
        "pdDeviceModel": {
          "type": "string",
          "description": "PD device Model"
        },
        "pdPowerAdminMaxInWatt": {
          "type": "string",
          "description": "PD Power Admin max in Watt"
        },
        "pdPowerBudgetInWatt": {
          "type": "string",
          "description": "PD Power Admin max in Watt"
        },
        "pdPowerConsumedInWatt": {
          "type": "string",
          "description": "PD Power Admin max in Watt"
        },
        "pdPowerRemainingInWatt": {
          "type": "string",
          "description": "PD Power Admin max in Watt"
        },
        "pdMaxPowerDrawn": {
          "type": "string",
          "description": "PD Power Admin max in Watt"
        },
        "pdConnectedDeviceList": {
          "type": "array",
          "description": "List of Connected Device List. When the AP is connected id is combination is MAc and Uuid\n",
          "items": {
            "type": "string"
          }
        },
        "poeOperPriority": {
          "type": "string",
          "description": "Operational priority",
          "enum": [
            "PRIORITY-0",
            "PRIORITY-1",
            "PRIORITY-2",
            "PRIORITY-3",
            "PRIORITY-4",
            "PRIORITY-5",
            "PRIORITY-6",
            "PRIORITY-7",
            "LOW",
            "HIGH"
          ]
        },
        "fastPoEEnabled": {
          "type": "boolean",
          "description": "Flag to indicate Fast PoE enabled on the interface or not"
        },
        "perpetualPoEEnabled": {
          "type": "boolean",
          "description": "Flag to indicate perpetual PoE enabled on the interface or not"
        },
        "policingPoEEnabled": {
          "type": "boolean",
          "description": "Flag to indicate policing PoE enabled on the interface or not"
        },
        "upoePlusEnabled": {
          "type": "boolean",
          "description": "Flag to indicate upoePlus enabled on the interface or not"
        },
        "fourPairEnabled": {
          "type": "boolean",
          "description": "Flag to indicate fourPair enabled on the interface or not"
        },
        "poeDataTimestamp": {
          "type": "integer",
          "description": "The poe data collected timestamp in UNIX epochtime in milliseconds.",
          "format": "int64"
        },
        "pdLocation": {
          "type": "string",
          "description": "PD location details"
        },
        "pdDeviceName": {
          "type": "string",
          "description": "PD Device name"
        },
        "pdConnectedSwitch": {
          "type": "string",
          "description": "PD Conneted switch"
        },
        "connectedSwitchUuid": {
          "type": "string",
          "description": "PD Conneted switch Uuid"
        },
        "ieeeCompliant": {
          "type": "boolean",
          "description": "Indicates ieeeCompliant or not"
        },
        "connectedSwitchType": {
          "type": "string",
          "description": "PD Conneted switch Type"
        }
      },
      "description": "Assurance Network Device interface details"
    },
    "InterfaceResponseAggregateAttribute": {
      "type": "object",
      "properties": {
        "name": {
          "$ref": "#/$defs/InterfaceAnalyticsAggregateName"
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/AggregateResponseAttributes"
        }
      ]
    },
    "InterfaceResponseAggregateAttributes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InterfaceResponseAggregateAttribute"
      }
    },
    "InterfaceWithAggregateResponse": {
      "type": "object",
      "properties": {
        "aggregateAttributes": {
          "$ref": "#/$defs/InterfaceResponseAggregateAttributes"
        }
      },
      "description": "Interface data with Aggregated value based on the data provided in the input payload.\n",
      "allOf": [
        {
          "$ref": "#/$defs/InterfaceData"
        }
      ]
    },
    "PaginationResponse": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "integer",
          "description": "The reference to the limit applied in the Pagination Request."
        },
        "offset": {
          "type": "integer",
          "description": "The reference to the record offset applied in the Pagination Request."
        },
        "count": {
          "type": "integer",
          "description": "Total number of records related to the resource after applying applicable filtering"
        },
        "sortBy": {
          "type": "array",
          "description": "Reference to the sortBy that was applied in the Pagination Request.",
          "items": {
            "$ref": "#/$defs/PaginationResponse_sortBy"
          }
        }
      }
    },
    "PaginationResponse_sortBy": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Field name by which sort is requested"
        },
        "order": {
          "type": "string",
          "description": "Sort order. 'asc' for ascending and 'desc' for descending",
          "enum": [
            "asc",
            "desc"
          ]
        }
      },
      "description": "List of field names and corresponding order used to sort the records."
    },
    "siteHierarchy": {
      "type": "string",
      "description": "The full hierarchy breakdown of the site tree in name form   starting from Global site name and ending with the specific site site.   'Global' is the Root name of the site hierarchy tree. Site name including   the hierarchy where the network device or client is located. For clients   site is derived based on site assigned to network device where the client   is connected to. For Wireless client its the connected Access Point site   and for Wired client its the connected switch site. For network device its   the site assigned to it."
    },
    "siteHierarchyId": {
      "type": "string",
      "description": "The full hierarchy breakdown of the site tree in id form starting from Global site UUID and ending with the specific site UUID."
    }
  }
}