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": "81f0286d-ab09-3735-65e4-b85482897cfc",
"date": "Fri Apr 26 09:56:38 EDT 2019",
"rules": -12816624,
"score": 40.87035602821907,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": "JfkHItKQXJ",
"severity": "error",
"comparison": "string",
"ruleId": "5e9e69b2-d6b9-33f7-903e-2ff841cf393f",
"templateVariable": "fLaZGVMY"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": "HHyGRPHt",
"severity": "warning",
"comparison": "regex",
"ruleId": "1c6a0490-0dc6-a34e-ff7e-8696b7c06d28",
"templateVariable": "CdHfDhZLpCV"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": "MN",
"severity": "warning",
"comparison": "regex",
"ruleId": "78ae3a77-b1d1-f4e9-1741-c119e5c96d2d",
"templateVariable": "OHtXfAe"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": 86165557.83732882,
"severity": "warning",
"comparison": "string",
"ruleId": "8129130f-7035-9441-355b-9ee23d88fc32",
"templateVariable": "TGtlzTL"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "FaydXl",
"severity": "warning",
"comparison": "string",
"ruleId": "df46cc96-1686-5d09-9d62-604c448b9350",
"templateVariable": "EsOiNQjun"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": -31843370.039641887,
"severity": "error",
"comparison": "regex",
"ruleId": "1c2dffe5-3e1c-b276-258f-df837942ee32",
"templateVariable": "h"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": 57055983.756637305,
"severity": "warning",
"comparison": "string",
"ruleId": "fadc9acb-b2e0-2e21-a2f3-29e0638bcfa3",
"templateVariable": "qIOmRRaGvk"
}
]
}