Summary
Get device report by ID
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": "arista0",
"leaf": "a563416d-bf1a-68ce-1e03-5f691b9cc1b0",
"date": "Thu Apr 25 09:56:38 EDT 2019",
"rules": 4562901,
"score": 13.987205968524385,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": "rjYrPMBd",
"severity": "warning",
"comparison": "string",
"ruleId": "1f006273-131f-fbf2-3d79-92db207c7b74",
"templateVariable": "qSbI"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": false,
"severity": "error",
"comparison": "regex",
"ruleId": "706f62e2-dc28-38b6-5ca5-f5838e6b4610",
"templateVariable": "ReeVxEmIdP"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": 27488322.649087846,
"severity": "notices",
"comparison": "regex",
"ruleId": "a593c84e-7541-28bb-240a-c724970334cf",
"templateVariable": "oJWrPUmwzn"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": -20209251.800919548,
"severity": "error",
"comparison": "regex",
"ruleId": "7a15be79-de5c-f5ab-f85a-6c1e0fb77e66",
"templateVariable": "yRWgWBteFBB"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": 78053684.10520893,
"severity": "warning",
"comparison": "regex",
"ruleId": "8eb16578-3ff0-29a9-c07d-159b62aa3b26",
"templateVariable": "YZkmlQp"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": false,
"severity": "notices",
"comparison": "string",
"ruleId": "f2d87559-0848-c9fa-5c21-eb9bd2e5e1c5",
"templateVariable": "VQgrYX"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": true,
"severity": "warning",
"comparison": "regex",
"ruleId": "f92cf267-57ef-343c-a3c8-04759dbfa8a4",
"templateVariable": "vlRJ"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": "qQgujaCKV",
"severity": "warning",
"comparison": "regex",
"ruleId": "ffe5d795-e7e7-9ba7-4e6b-27a70b0f2819",
"templateVariable": "rqBUCsjOIH"
}
]
}