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": "4ce9efb0-fbd4-9ebd-9aa9-acee36d611e4",
"date": "Fri Apr 26 09:56:38 EDT 2019",
"rules": -24510614,
"score": 56.38442938730961,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": 63050831.654046744,
"severity": "notices",
"comparison": "string",
"ruleId": "cd791100-dca8-7750-f26a-4483bf6697b5",
"templateVariable": "xvmewqQO"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": false,
"severity": "error",
"comparison": "string",
"ruleId": "34fa5c13-2bc1-ba70-07fb-5f8002f75805",
"templateVariable": "MPVPL"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": true,
"severity": "notices",
"comparison": "regex",
"ruleId": "51579277-bd6b-4ac1-12f1-942e1647e5a8",
"templateVariable": "HM"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": true,
"severity": "error",
"comparison": "regex",
"ruleId": "38d7691d-a236-071a-6ac0-0cb056725cdc",
"templateVariable": "GGsuynI"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": 68197296.33534238,
"severity": "notices",
"comparison": "string",
"ruleId": "2ffa9385-ed34-895e-8e39-0e1acfff0b9d",
"templateVariable": "UgyxsvCa"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "LqUHUITCACn",
"severity": "warning",
"comparison": "string",
"ruleId": "01c36096-8896-365c-f307-1b74b9606997",
"templateVariable": "Jic"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": true,
"severity": "error",
"comparison": "regex",
"ruleId": "cf67d386-1d65-0e4f-e175-5e5d0731906e",
"templateVariable": "ZcdXUQEBo"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": -79692637.68968898,
"severity": "warning",
"comparison": "regex",
"ruleId": "68ff0e18-ada2-f5e4-a754-8c905d63e7ee",
"templateVariable": "rblEnyjKhIc"
}
]
}