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": "junos0",
"leaf": "388f064a-8ece-082c-bb6b-0ab2b5597b76",
"date": "Fri Apr 26 09:56:38 EDT 2019",
"rules": -33187326,
"score": 57.48036547581277,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": -75994763.84094834,
"severity": "warning",
"comparison": "string",
"ruleId": "a9299e7e-389c-dcc3-8720-846351bb359d",
"templateVariable": "mb"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": false,
"severity": "warning",
"comparison": "string",
"ruleId": "08f0edce-b9f8-105f-ca20-55ee401a948f",
"templateVariable": "qXQTRbysZS"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": false,
"severity": "notices",
"comparison": "string",
"ruleId": "410ff9e3-7f2d-597f-1193-f4471539d6cb",
"templateVariable": "lHTVBLUn"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": "YbPRSE",
"severity": "warning",
"comparison": "string",
"ruleId": "248b4bb6-f8c7-d595-4b43-259c56e25e0a",
"templateVariable": "tkUrm"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": 22930502.161693946,
"severity": "notices",
"comparison": "regex",
"ruleId": "ba44c7f9-d940-283c-5ba3-d1a965b1f8c6",
"templateVariable": "keg"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": "ryZcsVvo",
"severity": "warning",
"comparison": "string",
"ruleId": "14d52c50-41ed-d923-5a99-03f2fe3c4ef8",
"templateVariable": "WAjwXv"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": -40692286.790267974,
"severity": "error",
"comparison": "regex",
"ruleId": "3ed6ad95-fb42-bd73-fa93-3864f74ac880",
"templateVariable": "Bwphs"
}
]
}