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": "ios0",
"leaf": "28c80580-dd83-cac2-7250-45e24c84b1f6",
"date": "Fri Apr 26 09:56:38 EDT 2019",
"rules": 26786559,
"score": 14.287712627226812,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": "arpswys",
"severity": "warning",
"comparison": "regex",
"ruleId": "f9893e72-b151-3d36-4552-e4930f016436",
"templateVariable": "UfpDIdx"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": false,
"severity": "notices",
"comparison": "regex",
"ruleId": "2b440adf-c826-9b1a-b455-dc6bd1b7f15f",
"templateVariable": "MbGwTIiUOn"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": false,
"severity": "warning",
"comparison": "regex",
"ruleId": "2727764a-7db1-282f-6eaa-a18b584fa772",
"templateVariable": "NXAOHgt"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": "WkQ",
"severity": "warning",
"comparison": "regex",
"ruleId": "1d11b037-9375-487f-89df-e4e9a7c9beba",
"templateVariable": "fkjHjlpekJN"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": 68792237.65778223,
"severity": "notices",
"comparison": "regex",
"ruleId": "6b35110b-14b6-7a6a-f284-cfbd17cb2116",
"templateVariable": "KPB"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": "aajflrZcMts",
"severity": "error",
"comparison": "string",
"ruleId": "f7237212-2ff5-9561-8e5d-8cbbd902226a",
"templateVariable": "GDIx"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": -75237308.88068165,
"severity": "notices",
"comparison": "string",
"ruleId": "f07766f0-faea-4b98-8a6c-76d8dfd652e6",
"templateVariable": "BjEre"
}
]
}