Cisco Evolved Programmable Network Manager API
Evolved Programmable Network Manager API Documentation

GET statisticsService/datacenters

Resource Information

Rate Limiting?

Yes

Sorting?

No

Paging?

No

Filtering?

No

Response Formats

xml

json

User Group

NBI Read

HTTP Methods

GET

Fetches the details of Datacenters

Since Product Version: 3.1

Resource URL

/webacs/api/v2/op/statisticsService/datacenters

Request Parameters

Type Attribute Name Source Description

String

datacenter optional

query

Pattern to match the Datacenter name. If you do not specify any, all the Datacenters are considered.

Boolean

children optional

query

Parameter that needs to be set to true to fetch children of the Datacenter. Children of a Datacenter include clusters and hypervisors which are not part of any cluster

String

Range optional

header

Pagination range.

Integer

firstResult optional

query

OPTIONAL: First result for pagination. Also look at maxResults

Integer

maxResults optional

query

OPTIONAL: maxResults for pagination. Also look at firstResult

String

sort optional

query

Response Parameters

Type Attribute Name Description

ResourceDetailsDTO[]

resources

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://172.25.123.114/webacs/api/v2/op/statisticsService/datacenters?datacenter="DC1"&firstResult=0&maxResults=10&sort=-datacenter

<?xml version="1.0" ?>
<mgmtResponse responseType="operation" requestUrl="https://172.25.123.114/webacs/api/v2/op/statisticsService/datacenters?datacenter=&amp;quot;DC1&amp;quot;&amp;amp;firstResult=0&amp;amp;maxResults=10&amp;amp;sort=-datacenter
					" rootUrl="https://172.25.123.114/webacs/api/v1/op/">
  <resourcesDTO>
    <resources>
      <resources>
        <childrenLink>String value</childrenLink>
        <description>String value</description>
        <details>
          <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://172.25.123.114/webacs/api/v2/op/statisticsService/datacenters.json?datacenter="DC1"&firstResult=0&maxResults=10&sort=-datacenter

{
  "mgmtResponse" : {
    "@requestUrl" : "https://172.25.123.114/webacs/api/v2/op/statisticsService/datacenters?datacenter=&quot;DC1&quot;&amp;firstResult=0&amp;maxResults=10&amp;sort=-datacenter\n\t\t\t\t\t",
    "@responseType" : "operation",
    "@rootUrl" : "https://172.25.123.114/webacs/api/v1/op/",
    "resourcesDTO" : [ {
      "resources" : {
        "resources" : [ {
          "childrenLink" : "String value",
          "description" : "String value",
          "details" : [ {
            "@key" : "String value",
            "value" : "String value"
          } ],
          "metricsLink" : "String value",
          "name" : "String value",
          "type" : "String value"
        } ]
      }
    } ]
  }
}