RESTCONF Fault
To retrieve alarms of type system, network and device and see its details.
- TGT, JWT APIs to login
- Run the Get alarm API
To handle the alarm of type system, network and device.
- TGT, JWT APIs to login
- Run the Handle alarm API
Example to Understand the Flow of API Execution
[Get Alarm]
TGT, JWT API to login and get token
Run the API '/crosswork/alarm/restconf/data/v2/rtm:alarm'
To include filter to get specific alarm, for e.g 'nd-ref'
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/alarm/restconf/data/v2/rtm:alarm?nd-ref=MD=CISCO_EMS!ND=RON_NCS5700_14.cisco-lab.com