Cisco Cisco Evolved Programmable Network Manager 1.2 Guía Del Desarrollador
RESTCONF/YANG
Interface Details
Cisco EPNM RESTConf NBI Guide
329
application/xml
application/yang.data+xml
application/json
application/yang.data+json
The first URL retrieves all the OpticalTransportSettings entities in the database. The next
URL returns a specific OpticalTransportSettings entity by its business key. Enter the values
of the attributes shown in the braces, but do not include the braces. The final URL retrieves
a specific OpticalTransportSettings by its database instance id. Enter the instance id, but do
not include the braces.
URL
Description
http://<host>/restconf/v1/data/epnm-restconf-xmp-im-ext-
opticaltransportsettings:OpticalTransportSettings
opticaltransportsettings:OpticalTransportSettings
Retrieve all OpticalTransportSettings
instances
instances
https://<host>/restconf/v1/data/epnm-restconf-xmp-im-ext-
opticaltransportsettings:OpticalTransportSettings/
{owningEntityId}/{name}
opticaltransportsettings:OpticalTransportSettings/
{owningEntityId}/{name}
Retrieve OpticalTransportSettings
instance by business key
instance by business key
https://<host>/restconf/v1/data/epnm-restconf-xmp-im-ext-
opticaltransportsettings:OpticalTransportSettings/{id}
opticaltransportsettings:OpticalTransportSettings/{id}
Retrieve OpticalTransportSettings
instance by database instance id
instance by database instance id
Sample Response Data
4.57.1.1
JSON
This sample is formatted and edited for clarity and length.
{"ns1.OpticalTransportSettings": [
{
"name": "PLINE-1-2-RX",
"owningEntityId": "1266283_192.168.229.77",
"instanceId": 1680707,
"businessKey": "5815f331[1266283_192.168.229.77,PLINE-1-2-RX]",
"protectionRole": "None",
"protectionStatus": "NA",
"secondaryState": "NORMAL",
"serviceState": "IS-NR,",
"subclassname": "OpticalTransportSettings",
"transportAdminState": "IS",
"interfaceProtocolEndpoint": "[InterfaceProtocolEndpoint{'name':'PLINE-
1-2-RX','businessKey':'1e6fb6f7[1266283_192.168.229.77,PLINE-1-2-RX]'}]"
1-2-RX','businessKey':'1e6fb6f7[1266283_192.168.229.77,PLINE-1-2-RX]'}]"
},