Summary
Get latest reports
Description
Get latest compliance report for all devices on a tree.
Route
GET /golden_config/latest/reports/:tree_id
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
tree_id |
string |
yes |
Tree's ID. |
Copied to Clipboard
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
data |
array |
List of compliance reports |
Copied to Clipboard
[
{
"_id": "iosxr0",
"leaf": "f1a99a4f-f6c2-053b-a8b5-b2eb7a9f1870",
"date": "Fri Apr 26 09:56:38 EDT 2019",
"rules": 95359585,
"score": 50.16321360420586,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": true,
"severity": "error",
"comparison": "string",
"ruleId": "082e25e4-60ba-a0f5-2207-c4a80fdfd030",
"templateVariable": "gr"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": false,
"severity": "warning",
"comparison": "string",
"ruleId": "1ba6331b-29a1-daef-8f3a-8ea207d8ec52",
"templateVariable": "UmYKdkFfDxZ"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": true,
"severity": "notices",
"comparison": "string",
"ruleId": "c93f94af-e09b-d931-30ef-36b707f6af7b",
"templateVariable": "iBBfem"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": -41004800.38955574,
"severity": "notices",
"comparison": "regex",
"ruleId": "e2f773a9-7a3b-645e-8b9a-983a5cabe75a",
"templateVariable": "YnNOHPTGx"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": true,
"severity": "notices",
"comparison": "regex",
"ruleId": "4dfbbd28-f5c7-370c-be42-b082fc9edffc",
"templateVariable": "nMot"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": 58661557.016328394,
"severity": "notices",
"comparison": "string",
"ruleId": "f2e06d5c-a21e-d018-7c53-1d1c4001ab26",
"templateVariable": "wuPjyV"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": "gEG",
"severity": "error",
"comparison": "string",
"ruleId": "40d5c930-b4f2-8424-ab26-17f87c228919",
"templateVariable": "cv"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": true,
"severity": "notices",
"comparison": "regex",
"ruleId": "7c1489fd-120b-d3b0-5b61-f62a773b18b7",
"templateVariable": "KzUfrn"
}
]
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceReport"
}
}