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": "b3a46228-9565-d139-bb73-abb6d1460a1c",
"date": "Fri Apr 26 09:56:38 EDT 2019",
"rules": -50069432,
"score": 86.38496009051244,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": false,
"severity": "error",
"comparison": "regex",
"ruleId": "5d94f0f7-3587-0821-9ee6-cba0e07f229f",
"templateVariable": "NP"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "BV",
"severity": "error",
"comparison": "regex",
"ruleId": "65d7dbcf-d5b0-e1b6-27eb-e9d52b9403c8",
"templateVariable": "Y"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": true,
"severity": "warning",
"comparison": "regex",
"ruleId": "55b85d7c-8d08-0f08-e933-b627764580ec",
"templateVariable": "PN"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": "JxXkMVcJZp",
"severity": "error",
"comparison": "regex",
"ruleId": "f1e80212-ede0-231d-75ed-fa2be8c23001",
"templateVariable": "mqyrUeDd"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": "fqFurfPXnt",
"severity": "warning",
"comparison": "string",
"ruleId": "f0b42e81-dbc2-fc9b-223e-fcde97e22104",
"templateVariable": "ogNbKsszQ"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": false,
"severity": "notices",
"comparison": "string",
"ruleId": "bd75fb40-453c-ba0f-1ab7-200ae70a30d8",
"templateVariable": "PRZWpblC"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": true,
"severity": "error",
"comparison": "string",
"ruleId": "b86497ac-1f9f-08b2-6787-c0bf7983845a",
"templateVariable": "IbqYhajNJ"
}
]
}