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": "iosxr0",
"leaf": "8231afdc-208b-8408-9c12-5d7b0db1bba0",
"date": "Fri Apr 26 09:56:38 EDT 2019",
"rules": 20929682,
"score": 76.8539354299938,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": 39278076.35509217,
"severity": "notices",
"comparison": "string",
"ruleId": "60d244a7-7572-ad5f-87bc-371c6a315bd9",
"templateVariable": "HJYpP"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": "jMzoih",
"severity": "warning",
"comparison": "string",
"ruleId": "736590ba-f440-a175-3409-b5d5448d3e2d",
"templateVariable": "OOgShJhL"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": true,
"severity": "warning",
"comparison": "string",
"ruleId": "7c7d77f1-375b-98b4-5ba5-640429c5ad13",
"templateVariable": "MOMtDXISpo"
}
]
}