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": "02926e4f-4d3e-938f-0773-845123f64bb8",
"date": "Fri Apr 26 09:56:38 EDT 2019",
"rules": 74391550,
"score": 87.49035737284734,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": false,
"severity": "error",
"comparison": "regex",
"ruleId": "95d5d8de-c07f-1a7b-782b-cceb56751ef1",
"templateVariable": "FwxWl"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": "k",
"severity": "warning",
"comparison": "string",
"ruleId": "cf53f35d-3b8d-fb6a-0a4e-44d0881c2d66",
"templateVariable": "AcLp"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": -65276391.16274071,
"severity": "notices",
"comparison": "string",
"ruleId": "793acca1-f049-cf0c-9612-8ee9036a13ef",
"templateVariable": "goRMxnZpU"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": -31673654.67640844,
"severity": "error",
"comparison": "regex",
"ruleId": "46bcd101-70ff-3660-bbdc-d54f667ecc89",
"templateVariable": "ev"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": "dw",
"severity": "warning",
"comparison": "regex",
"ruleId": "6b2a99cc-c1fc-8e08-fcc4-566174e6b8e9",
"templateVariable": "eP"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": "lFv",
"severity": "warning",
"comparison": "regex",
"ruleId": "d4d0a3c8-e7d6-ba7b-8ab5-17eff9f63b79",
"templateVariable": "r"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": "RcEiPWU",
"severity": "warning",
"comparison": "regex",
"ruleId": "21efea4f-1520-49b7-86ef-1f9f6ca64253",
"templateVariable": "w"
}
]
}