Cisco Prime Infrastructure API
Prime Infrastructure API Documentation

GET managedServers/mode

Provides information on the managed server mode (active or deactivated).

Since Product Version: 3.7

Resource Information

Rate Limiting?

No

Sorting?

No

Paging?

No

Filtering?

No

Group Filtering?

No

Aggregation?

No

Response Formats

xml

json

User Group

NBI Read

HTTP Methods

GET

Resource URL

/webacs/api/v2/op/managedServers/mode

Unmodified

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

Request Parameters

Attribute Source Description

server String

query

RequiredIP address or hostname that was used to add the managed server

Response Parameters

Attribute Description

mode ManagedServerMode

The mode of the Operations Center managed server.

Allowed values:

  • ACTIVE
  • DEACTIVATED

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/v2/op/managedServers/mode?server=managed.instance.com

<?xml version="1.0" ?>
<mgmtResponse responseType="operation" requestUrl="https://localhost/webacs/api/v2/op/managedServers/mode?server=managed.instance.com" rootUrl="https://localhost/webacs/api/v2/op">
  <managedServerModeDTO>
    <mode>ACTIVE</mode>
  </managedServerModeDTO>
</mgmtResponse>

Sample JSON Response Payload

https://localhost/webacs/api/v2/op/managedServers/mode.json?server=managed.instance.com

{
  "mgmtResponse" : {
    "@requestUrl" : "https://localhost/webacs/api/v2/op/managedServers/mode?server=managed.instance.com",
    "@responseType" : "operation",
    "@rootUrl" : "https://localhost/webacs/api/v2/op",
    "managedServerModeDTO" : [ {
      "mode" : "ACTIVE"
    } ]
  }
}