RESTCONF Inventory
To view the details of the nodes, equipment, module, chassis, physical-connector and termination-point managed in the system use
- TGT, JWT APIs to login
- Run the respective API
Example to Understand the Flow of API Execution
[Get Termination Point]
TGT, JWT API to login and get token
Run the API '/crosswork/inventory/restconf/data/v2/resource-ems:termination-point'
To include filter to get specific termination point, for e.g 'ndFdn'
a. Run node API '/crosswork/inventory/restconf/data/v2/resource-physical:node' b. In the json format of the response fetch "nd.fdn" c. for e.g "nd.fdn": "MD=CISCO_EMS!ND=RON_NCS5700_14.cisco-lab.com"
Now run the API with 'nd-ref' filter as below
/crosswork/inventory/restconf/data/v2/resource-ems:termination-point?ndFdn=MD=CISCO_EMS!ND=RON_NCS5700_14.cisco-lab.com