Summary
Get Report for a Device
Description
Get report based on device and tree ID.
Route
GET /golden_config/report/:device/:treeid
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
device |
string |
yes |
Device name. |
treeid |
string |
yes |
Tree ID. |
Copied to Clipboard
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
data |
object |
Device report. |
Copied to Clipboard
{
"_id": "iosxr0",
"leaf": "c8f0a6b0-4f32-0388-6615-816c0e87117e",
"date": "Thu Apr 25 09:56:38 EDT 2019",
"rules": 99824325,
"score": 11.195604438255602,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": -66773813.565315,
"severity": "warning",
"comparison": "regex",
"ruleId": "c7dc6f1c-285e-41d0-c3c8-9f31c3b35da4",
"templateVariable": "PzxLrqI"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": 25361952.81773068,
"severity": "warning",
"comparison": "regex",
"ruleId": "41d6f720-4f1d-7d62-15a5-6c6a62241143",
"templateVariable": "GgqErdfvONo"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": -26727069.349106804,
"severity": "warning",
"comparison": "string",
"ruleId": "7f93cf77-bb62-4b8d-47d5-5748d2388a24",
"templateVariable": "fxdJKUZd"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": "RyvHORU",
"severity": "error",
"comparison": "string",
"ruleId": "a52587a3-ac65-b2d8-d31b-124d790ff0a1",
"templateVariable": "ual"
}
]
}