Summary
Get latest reports
Description
Get latest compliance report for all devices on a tree.
Route
GET /golden_config/latest/reports/:tree_id
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
tree_id | string | yes | Tree's ID. |
null
{ "type": "object", "properties": {}, "required": [], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
data | array | List of compliance reports |
[ { "_id": "junos0", "leaf": "26bac03b-3fac-fe3e-4bad-04d97d1e26db", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": 6448874, "score": 70.44688352871343, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "PK", "severity": "error", "comparison": "string", "ruleId": "b8578cb6-20fc-b16b-8a1e-a607640f4926", "templateVariable": "kHNUd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 32470373.388065264, "severity": "warning", "comparison": "string", "ruleId": "096eca32-d41d-49ff-d40c-2d903dd92717", "templateVariable": "bg" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "ZjZqLpfqYG", "severity": "error", "comparison": "regex", "ruleId": "e3c2eaba-c249-ec7f-5ccd-bed74a165da9", "templateVariable": "AIwKBzQwI" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "VOqECLQJq", "severity": "error", "comparison": "regex", "ruleId": "f5c7ac03-97ef-12bd-9aea-0fc322008391", "templateVariable": "TvWYZroMwoD" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "epQEHrGgmp", "severity": "error", "comparison": "string", "ruleId": "ecb46948-78b2-e275-4d19-2eeedfb65031", "templateVariable": "jxLdiLMM" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 83233545.89419195, "severity": "warning", "comparison": "string", "ruleId": "2bced31f-6dce-6e27-f838-f42abd7edf80", "templateVariable": "zjmyb" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 59193139.2241222, "severity": "error", "comparison": "regex", "ruleId": "dfb6a20e-ebfa-f3ed-9420-8c025e9ec9f0", "templateVariable": "st" } ] }, { "_id": "ios0", "leaf": "a4c2fc94-8c91-7227-1cba-451ea278f1bb", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": 9559294, "score": 83.60284531551949, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "R", "severity": "warning", "comparison": "regex", "ruleId": "5f70dc7c-cff6-9092-ae4f-0e8719d4de6d", "templateVariable": "jPovxhog" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "SbKqcUs", "severity": "error", "comparison": "regex", "ruleId": "ab0199aa-fc1d-5f8c-4d58-7e9126549bfb", "templateVariable": "CRruBls" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "warning", "comparison": "string", "ruleId": "901f1925-8ed9-21ec-b2be-a2f1859e6a71", "templateVariable": "qoocf" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "GKsiFlIHJI", "severity": "warning", "comparison": "string", "ruleId": "34b0a578-dfdf-4291-d6bd-32eb8d99c69d", "templateVariable": "lT" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "OaXVgQIPQET", "severity": "error", "comparison": "string", "ruleId": "bf5e3ada-e7ec-92a2-edcc-beaeb09d9224", "templateVariable": "dYUMxd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "error", "comparison": "regex", "ruleId": "f7cd783d-557d-1154-3772-e0b25951c16d", "templateVariable": "gLoPcbZelM" } ] }, { "_id": "junos0", "leaf": "28b11732-413c-5a41-483d-5348811f8f1a", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": -68166128, "score": 63.05002053220403, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "25fce5ee-3d05-bd88-4715-cb8f2fbb8e3c", "templateVariable": "n" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "c", "severity": "warning", "comparison": "regex", "ruleId": "4028e7ae-5019-f5fa-b8cf-bbb79fbe9b80", "templateVariable": "WGFd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": -51697272.73168147, "severity": "notices", "comparison": "string", "ruleId": "9eede404-c81c-470d-c8f7-9c2a071edb20", "templateVariable": "BQCE" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "warning", "comparison": "string", "ruleId": "213b5554-26a0-27bf-cc81-5c3c351d61a9", "templateVariable": "ubX" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "2f8719f1-31bc-c505-ca5d-4d85eacf308d", "templateVariable": "kDh" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "17c5f455-9b2e-cad0-4471-089840448816", "templateVariable": "DosQt" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "vHIc", "severity": "warning", "comparison": "regex", "ruleId": "a90bb838-c442-09c8-10e9-49a9e8bafb96", "templateVariable": "ZVrHFTAz" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 50366754.66708562, "severity": "error", "comparison": "string", "ruleId": "68703a30-b010-fb83-9c59-074fbf6ee140", "templateVariable": "AakZqXeJb" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }