{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-catalyst-center/json-schema/cisco-catalyst-center-dhcpservice-list-response-model-schema.json",
  "title": "DHCPServiceListResponseModel",
  "description": "DHCP Service list response",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-catalyst-center-dhcp-services-api-openapi.yml#/components/schemas/DHCPServiceListResponseModel",
  "type": "object",
  "properties": {
    "response": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DHCPServiceResponse"
      }
    },
    "page": {
      "$ref": "#/$defs/DHCPServicePaginationResponse"
    },
    "version": {
      "type": "string",
      "description": "The version of the response"
    }
  },
  "$defs": {
    "DHCPServicePaginationResponse": {
      "type": "object",
      "properties": {
        "limit": {
          "maximum": 100,
          "minimum": 1,
          "type": "integer",
          "description": "Number of records to be returned in response",
          "default": 100
        },
        "offset": {
          "minimum": 1,
          "type": "integer",
          "description": "Starting offset of data to fetch and returned",
          "default": 1
        },
        "count": {
          "type": "integer",
          "description": "Total number of records that can be returned for this request"
        },
        "sortBy": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DHCPServicesPaginationSortBy"
          }
        }
      }
    },
    "DHCPServiceResponse": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique id of the DHCP Service, which is the combination of Servicer IP and Device UUID."
        },
        "serverIp": {
          "type": "string",
          "description": "IP Address of the DHCP Server"
        },
        "deviceId": {
          "type": "string",
          "description": "The device UUID."
        },
        "deviceName": {
          "type": "string",
          "description": "Name of the device."
        },
        "deviceFamily": {
          "type": "string",
          "description": "Device Family."
        },
        "deviceSiteHierarchy": {
          "type": "string",
          "description": "Site hierarchy of the device."
        },
        "deviceSiteId": {
          "type": "string",
          "description": "Site id of the device."
        },
        "deviceSiteHierarchyId": {
          "type": "string",
          "description": "Site hierarchy id of the device."
        },
        "transactions": {
          "type": "integer",
          "description": "Number of transactions in the last available interval of the given time range.",
          "format": "int64"
        },
        "failedTransactions": {
          "type": "integer",
          "description": "Total number of failed transactions in the last available interval of the given time range.",
          "format": "int64"
        },
        "successfulTransactions": {
          "type": "integer",
          "description": "Total number of successful transactions in the last available interval of the given time range.",
          "format": "int64"
        },
        "latency": {
          "type": "integer",
          "description": "Latency (milliseconds) in the last available interval of the given time range."
        },
        "discoverOfferLatency": {
          "type": "integer",
          "description": "Discover-Offer latency (milliseconds) in the last available interval of the given time range."
        },
        "requestAcknowledgeLatency": {
          "type": "integer",
          "description": "Request-Acknowledge latency (milliseconds) in the last available interval of the given time range."
        }
      },
      "description": "Contains details of DHCP service."
    },
    "DHCPServicesPaginationSortBy": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Records are sorted based on the field specified.",
          "enum": [
            "serverIp",
            "deviceName",
            "deviceSiteHierarchy",
            "transactions",
            "failedTransactions",
            "successfulTransactions",
            "latency",
            "requestAcknowledgeLatency",
            "discoverOfferLatency"
          ]
        },
        "order": {
          "type": "string",
          "description": "Sort order. 'asc' for ascending and 'desc' for descending",
          "enum": [
            "asc",
            "desc"
          ]
        }
      },
      "description": "Records are sorted based on the field specified."
    }
  }
}