GET /service/api/status/reporting/gsm/{gsmKey}/sites/{keyCode}/dnsp
 ?reportType={reportType}
 &effectiveDate={effectiveDate}

Returns a site-level summary report of DNSP usage for a GSM master keycode by a site keycode. The report includes information like the site name and license type as well as the total number of devices.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
gsmKey

A master keycode for which usage information is to be retrieved.

string

Required

keyCode

The keycode of the site for which usage information is to be retrieved.

string

Required

reportType

The type of report to be produced. The following values are supported:

  • "DevicesSeen": Provides DNSP statistics for all devices seen on the effective report date.
  • "DevicesSeenInLast30Days": Provides DNSP statistics for all devices seen in the last 30 days (between the effective report date and 30 days earlier).
If omitted, the reportType is set to "DevicesSeenInLast30Days".

string

None.

effectiveDate

The date the report should refer to. If omitted, the most recent usage report will be returned.

Note: Usage data will typically be generated in the course of the following day (UTC) and therefore can only be provided for dates earlier than yesterday. If, for example, this API method is called at 11:00 pm UTC, yesterday's data will not be available yet.

date

None.

URI Sample(s)

GET
https://unityapi.webrootcloudav.com/service/api/status/reporting/gsm/37CF-1F33-21F9-4373-8F42/sites/9BAD-689A-453F-4BF2-A310/dnsp?reportType=DevicesSeen&effectiveDate=2024-03-23T00:00:00.0000000Z

Body Parameters

None.

Response Information

Resource Description

Returns a list of site keycode usage statistics having the specified master key as parent.

UsageReportSite_DNSP
NameDescriptionTypeAdditional Information
ReportInfo

Details about the returned report.

UsageReportSites_ReportInfo

None.

Sites

Site/endpoint details for a given GSM site.

Collection of UsageReportSites_DNSP_SiteEntry

None.

Sample Response

{
  "ReportInfo": {
    "Count": 1,
    "SiteKeyFilter": null,
    "ReportType": "DevicesSeenInLast30Days",
    "EffectiveDate": "2024-03-23T00:00:00Z",
    "GSMKey": "9zu52oc3c8tns0m5fywg"
  },
  "Sites": [
    {
      "SiteId": "6d3d3580-31c1-0768-6375-7c1a89f20283",
      "SiteKey": "s1m362lx3wo79v5zodx7",
      "SiteName": "Site VGASISTS7A",
      "SiteLicenseType": "Trial",
      "SiteExpiryDate": "2026-04-03T06:52:36.8618754Z",
      "SiteState": "active",
      "SiteStateChangedDate": "2024-03-19T01:56:36.8618754Z",
      "DNSPEnabled": true,
      "DNSPLicenseType": "Trial",
      "DNSPExpiryDate": "2024-07-15T00:24:36.8618754Z",
      "TotalDNSPDevicesProxy": 5,
      "TotalDNSPDevicesActual": 14,
      "TotalDNSPAgentlessRequests": 300000,
      "TotalDNSPAgents": 4
    }
  ]
}                    
<StatusReporting.UsageReportSite_DNSP xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.AgentStatus.Models">
  <ReportInfo>
    <EffectiveDate>2024-03-23T00:00:00Z</EffectiveDate>
    <GSMKey>9zu52oc3c8tns0m5fywg</GSMKey>
    <ReportType>DevicesSeenInLast30Days</ReportType>
    <Count>1</Count>
    <SiteKeyFilter i:nil="true" />
  </ReportInfo>
  <Sites>
    <StatusReporting.UsageReportSites_DNSP_SiteEntry>
      <DNSPEnabled>true</DNSPEnabled>
      <DNSPExpiryDate>2024-07-15T00:24:36.8618754Z</DNSPExpiryDate>
      <DNSPLicenseType>Trial</DNSPLicenseType>
      <SiteExpiryDate>2026-04-03T06:52:36.8618754Z</SiteExpiryDate>
      <SiteId>6d3d3580-31c1-0768-6375-7c1a89f20283</SiteId>
      <SiteKey>s1m362lx3wo79v5zodx7</SiteKey>
      <SiteLicenseType>Trial</SiteLicenseType>
      <SiteName>Site VGASISTS7A</SiteName>
      <SiteState>active</SiteState>
      <SiteStateChangedDate>2024-03-19T01:56:36.8618754Z</SiteStateChangedDate>
      <TotalDNSPAgentlessRequests>300000</TotalDNSPAgentlessRequests>
      <TotalDNSPAgents>4</TotalDNSPAgents>
      <TotalDNSPDevicesActual>14</TotalDNSPDevicesActual>
      <TotalDNSPDevicesProxy>5</TotalDNSPDevicesProxy>
    </StatusReporting.UsageReportSites_DNSP_SiteEntry>
  </Sites>
</StatusReporting.UsageReportSite_DNSP>