Cisco Prime Infrastructure API
Prime Infrastructure API Documentation

GET statisticsService/devices

Fetches the basic details of devices and REST URL links to their children and metrics.

Since Product Version: 3.1

Resource Information

Rate Limiting?

Yes

Sorting?

No

Paging?

No

Filtering?

No

Aggregation?

No

Response Formats

xml

json

User Group

NBI Read

HTTP Methods

GET

DevNet Discussions

Resource URL

/webacs/api/v3/op/statisticsService/devices

Unmodified

This resource has not been modified since the previous API version.

Request Parameters

Attribute Source Description

device String

query

OptionalOPTIONAL: Natural key to identify the device. Could be Management Ip or DNS config name

firstResult Integer

query

OptionalDefines the offset from the first result you want to fetch. Default is 0.

maxResults Integer

query

OptionalDefines maximum amount of hits to be returned. Default is 20.

Response Parameters

Attribute Description

resources ResourceDetailsDTO[]

Sample Payloads

Sample payloads are for information only. They are automatically generated and the values included may not be representative of actual valid data values.

Sample XML Response Payload

https://localhost/webacs/api/v3/op/statisticsService/devices?firstResult=0&maxResults=20&sort=+mne.name

<?xml version="1.0" ?>
<mgmtResponse responseType="operation" requestUrl="https://localhost/webacs/api/v3/op/statisticsService/devices?firstResult=0&amp;amp;maxResults=20&amp;amp;sort=+mne.name" rootUrl="https://localhost/webacs/api/v3/op">
  <resourcesDTO>
    <resources>
      <resources>
        <childrenLink>String value</childrenLink>
        <description>String value</description>
        <details>
          <item key="Another string value">
            <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Another string value</value>
          </item>
          <item key="String value">
            <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">String value</value>
          </item>
        </details>
        <metricsLink>String value</metricsLink>
        <name>String value</name>
        <type>String value</type>
      </resources>
      <resources>
        <childrenLink>String value</childrenLink>
        <description>String value</description>
        <details>
          <item key="Another string value">
            <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Another string value</value>
          </item>
          <item key="String value">
            <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">String value</value>
          </item>
        </details>
        <metricsLink>String value</metricsLink>
        <name>String value</name>
        <type>String value</type>
      </resources>
    </resources>
  </resourcesDTO>
</mgmtResponse>

Sample JSON Response Payload

https://localhost/webacs/api/v3/op/statisticsService/devices.json?firstResult=0&maxResults=20&sort=+mne.name

{
  "mgmtResponse" : {
    "@requestUrl" : "https://localhost/webacs/api/v3/op/statisticsService/devices?firstResult=0&amp;maxResults=20&amp;sort=+mne.name",
    "@responseType" : "operation",
    "@rootUrl" : "https://localhost/webacs/api/v3/op",
    "resourcesDTO" : [ {
      "resources" : {
        "resources" : [ {
          "childrenLink" : "String value",
          "description" : "String value",
          "details" : [ {
            "@key" : "Another string value",
            "value" : "Another string value"
          }, {
            "@key" : "String value",
            "value" : "String value"
          } ],
          "metricsLink" : "String value",
          "name" : "String value",
          "type" : "String value"
        }, {
          "childrenLink" : "String value",
          "description" : "String value",
          "details" : [ {
            "@key" : "Another string value",
            "value" : "Another string value"
          }, {
            "@key" : "String value",
            "value" : "String value"
          } ],
          "metricsLink" : "String value",
          "name" : "String value",
          "type" : "String value"
        } ]
      }
    } ]
  }
}