Table 111: URI Query/Set Arguments (possible fields and values preceded by ? and separated by &)
Description
URI Argument
Format output using JSON standard.
Type: exist
Values: any value or empty (any of js=1, js, js=0, or js=9999 are valid)
Omitting this argument formats the output by default in XML.
js (optional)
Table 112: Output Field Descriptions
Description
Output Field
Number of active alarms
Type: Integer
Value: 0 ... 4294967295
actalarms
Number of active warnings
Type: Integer
Value: 0 ... 4294967295
actwarns
Number of cleared faults
Type: Integer
Value: 0 ... 4294967295
clrfaults
Input example (read back all faults summary in default XML format):
curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/summary"
Expected output (values are for example purposes only):
<?xml version="1.0" encoding="ISO-8859-1" ?>
<faults>
<summary>
<actalarms>1</actalarms>
<actwarns>3</actwarns>
<clrfaults>144 </clrfaults>
</summary>
</faults>
Input example (read back all faults summary in JSON format):
curl -k -H "X-SESSION-ID: $token" "https://192.168.0.1/ws/v2/status/summary?js=1"
Expected output (values are for example purposes only):
{
"faults": {
"summary": {
"actalarms": "1",
"actwarns": "3",
"clrfaults": "144"
}
}
}
Cisco D9800 Network Transport Receiver Version 2.75 RESTful Web Services API Reference Guide
120
API Definitions
Alarms and Warnings