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

POST ptppreference/system/clock

Set the ranges in which PTP Clock Class values are classified as OK, Degraded and Failure. Allowed ranges are 0-255, there should not be an overlap between the ranges of OK/Degraded/Failure.
Example: op/ptppreference/system/clock
Payload example:{"PtpPreferenceFacade_SetPtpClock_In": {"clockThreshold":"[{\"PtpClockClasse\":\"OK\",\"from\":0,\"to\" :100,\"color\":\"Green\"},{\"PtpClockClasse\":\"Degraded\" ,\"from\":101,\"to\":197,\"color\":\"Orange\"},{\"PtpClockClasse\" :\"Failure\",\"from\":198,\"to\":252,\"color\":\"Red\"}]"}}

Since Product Version: 1.0

Resource Information

Rate Limiting?

No

Sorting?

No

Paging?

No

Filtering?

No

Group Filtering?

No

Aggregation?

No

Response Formats

xml

json

User Group

NBI Write

HTTP Methods

POST

API version v1 is deprecated

This API version has been deprecated. It will be removed in a future release of the product. Please develop new clients using the latest API version. Please modify your existing clients to use a later API version.

Resource URL

/webacs/api/v1/op/ptppreference/system/clock

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 Request Payload

https://10.56.58.149/webacs/api/v1/op/ptppreference/system/clock

<?xml version="1.0" ?>
<PtpPreferenceFacade_SetPtpClock_In>
  <clockThreshold>String value</clockThreshold>
</PtpPreferenceFacade_SetPtpClock_In>

Sample JSON Request Payload

https://10.56.58.149/webacs/api/v1/op/ptppreference/system/clock.json

{
  "PtpPreferenceFacade_SetPtpClock_In" : {
    "clockThreshold" : "String value"
  }
}