Cisco Cisco Evolved Programmable Network Manager 1.2 Guida Dello Sviluppatore

Pagina di 365
 
                                                          RESTConf/Yang Interface 
Details 
 
 
Cisco EPNM RESTConf  NBI  Guide  
 
 
 
91 
The first URL retrieves all the OpticalPhysicalProtocolEndpoint entities in the database. The 
final URL retrieves a specific OpticalPhysicalProtocolEndpoint 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-
opticalphysicalprotocolendpoint:OpticalPhysicalProtocolEndpoint 
Retrieve all 
OpticalPhysicalProtocolEndpoint 
instances 
http://<host>/restconf/v1/data/epnm-restconf-xmp-im-ext-
opticalphysicalprotocolendpoint:OpticalPhysicalProtocolEndpoint/{id} 
Retrieve 
OpticalPhysicalProtocolEndpoint 
instance by database instance id 
 
This object supports the fully-qualified domain name (FDN) attribute, which is unique for 
all OpticalPhysicalProtocolEndpoint objects. You may use the FDN as a query parameter to 
retrieve a specific OpticalPhysicalProtocolEndpoint object as follows: 
 
http://<host>/restconf/v1/data/epnm-restconf-xmp-im-ext-
opticalphysicalprotocolendpoint:OpticalPhysicalProtocolEndpoint?fdn=<value
 
Where <host> the host name or IP address of the EPNM server and <value> is the value of 
the FDN attribute for the object to retrieve. 
Sample Response Data 
4.8.1.1  JSON 
 
This sample is formatted and edited for clarity and length. 
 
{"ns1.OpticalPhysicalProtocolEndpoint": [ 
    { 
      "name": "Optics0\/2\/0\/5", 
      "owningEntityId": "1464463_192.168.235.222", 
      "fdn": "MD\/CISCO_EPNM\/ME\/ncs-4k-222\/PTP\/Optics0\/2\/0\/5", 
      "isFloatingPep": false, 
      "layerRate": "LR_PHYSICAL_OPTICAL", 
      "subclassname": "OptclPhysclPrtclEndpnt", 
      "upperLayerPEP": 
"[OpticalInterfacePEP{'name':'Optics0\/2\/0\/5','businessKey':'1483615'}]", 
      "businessKey": "c809c4ad[1464463_192.168.235.222,1888257]", 
      "clocking": "NOTAPPLICABLE", 
      "entPhysicalIndex": 1888257, 
      "isInternalPort": false,