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": "ios0", "leaf": "19135fac-8ea3-05da-70fe-f3289149a57d", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 14081317, "score": 46.24068828861654, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -83517569.57598764, "severity": "notices", "comparison": "string", "ruleId": "f7ea4fa7-8c20-9a35-77e6-00a68d3b715e", "templateVariable": "d" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "EKccuHtKnSl", "severity": "warning", "comparison": "regex", "ruleId": "df0f8ad3-1317-40b8-48ba-13407d90261d", "templateVariable": "gcV" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "f", "severity": "warning", "comparison": "regex", "ruleId": "40ab7f71-676b-98c3-41e5-66d7169a8c44", "templateVariable": "LHBRnHJ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "ApIT", "severity": "warning", "comparison": "regex", "ruleId": "c4b12059-ced4-5fa4-38aa-e768bbb126d6", "templateVariable": "AwS" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 11279313.791194707, "severity": "error", "comparison": "string", "ruleId": "1e840a3d-2077-b4e6-9df8-e4a3edaa905d", "templateVariable": "LOZqJiOuL" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "iXi", "severity": "warning", "comparison": "regex", "ruleId": "cb5c1a13-6462-63b1-1e24-6d2e619fcc94", "templateVariable": "mshnHkLW" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "notices", "comparison": "string", "ruleId": "a5fc31ba-18af-64fc-7ef2-628ff980e248", "templateVariable": "LHbLPjqYPv" } ] }, { "_id": "ios0", "leaf": "fe2728a0-fb60-a368-7d12-f052542ad07e", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -29460705, "score": 71.83157347001932, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 47591907.888338655, "severity": "warning", "comparison": "regex", "ruleId": "026748eb-cf1c-99a7-84b7-895636e88b52", "templateVariable": "fjNid" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": -94813374.87343802, "severity": "warning", "comparison": "regex", "ruleId": "44d5f209-c043-5933-0ec7-4cfd2db83f08", "templateVariable": "FX" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "23af5540-4a66-4530-fa44-c5187160ddc9", "templateVariable": "G" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "Bub", "severity": "warning", "comparison": "string", "ruleId": "7f151801-8afd-1d7e-5709-bc2b83f0cf2f", "templateVariable": "ZCBLz" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -9119586.896328345, "severity": "warning", "comparison": "string", "ruleId": "3a385547-8b9c-1d9c-21df-59b2f41e7db8", "templateVariable": "LJ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "notices", "comparison": "string", "ruleId": "fda142f3-d3c9-7035-e5fd-637a3fbcfd60", "templateVariable": "vpTuGqnSaPu" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "error", "comparison": "regex", "ruleId": "f5165919-a773-87c8-d884-f2fac47479eb", "templateVariable": "skl" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "XLa", "severity": "warning", "comparison": "regex", "ruleId": "b29f8ce6-2329-0936-e4a3-b1fea640ee22", "templateVariable": "P" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 42933102.14914903, "severity": "notices", "comparison": "string", "ruleId": "eb5ce175-197e-2d07-b59c-956b4108561c", "templateVariable": "VIGrPZF" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 6351998.503049165, "severity": "notices", "comparison": "regex", "ruleId": "2d12bfcb-b560-42fa-f282-473d99f5a09a", "templateVariable": "vCqBPLXb" } ] }, { "_id": "junos0", "leaf": "ad72bb48-5abf-a6a9-dacd-0a88c1b551e5", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 18423228, "score": 47.47849981456833, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "a671ef8e-dec0-88a1-055f-2be4a39d4d9b", "templateVariable": "TPYnDA" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "WvY", "severity": "notices", "comparison": "string", "ruleId": "1a679d8e-5be7-1d16-d256-977bcba9ac3c", "templateVariable": "YDdHhUI" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "Y", "severity": "error", "comparison": "string", "ruleId": "1ad3f0b0-072d-b87e-ab0e-bc268ac14cb3", "templateVariable": "lWyxAqH" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": -22364095.679154605, "severity": "notices", "comparison": "regex", "ruleId": "f0bc3d59-26ff-bab4-e434-5a777460164d", "templateVariable": "GQfYs" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "QBJHlyLJ", "severity": "warning", "comparison": "string", "ruleId": "7e1e4c72-3790-f308-a946-94a385520ace", "templateVariable": "xqWo" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "ce7c6736-df9b-7118-3abb-674f88230927", "templateVariable": "yzFpusF" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "43653ec3-d07c-0493-ff2c-3c832898c52c", "templateVariable": "N" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "error", "comparison": "string", "ruleId": "d1a3083f-3c51-d408-d07d-e4f37aead0f8", "templateVariable": "gOWLfumIAL" } ] }, { "_id": "iosxr0", "leaf": "922022de-6624-202a-563b-e467be14a13f", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": -80296877, "score": 85.51292146585583, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "error", "comparison": "regex", "ruleId": "7ba62a2e-0241-8891-fd25-ca2f97f7aa0c", "templateVariable": "XFDzLn" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "warning", "comparison": "string", "ruleId": "0cf27d14-bcd2-bbdf-8946-2d25d7b2f024", "templateVariable": "lUHNBug" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "error", "comparison": "string", "ruleId": "b66d7d25-d1b0-8f55-366e-d19e4dd87998", "templateVariable": "PQdBWGUw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "NrdPRwzmGfC", "severity": "error", "comparison": "string", "ruleId": "53cc1f0f-b554-37cc-0739-03005dcf7f36", "templateVariable": "EROHjaUaL" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "warning", "comparison": "string", "ruleId": "395af4b6-5e95-3379-0660-19093e0b5bcf", "templateVariable": "kL" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 97872738.37405318, "severity": "warning", "comparison": "regex", "ruleId": "2ea819e2-2b20-2c58-fff7-5d905f37ef22", "templateVariable": "qsLsSmQ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "f1ad02fe-b9bb-070c-51f5-38ab849d1525", "templateVariable": "sQUXDt" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "Ojkh", "severity": "notices", "comparison": "regex", "ruleId": "746c7077-034a-628a-b560-5d00f374e41f", "templateVariable": "RbkpzBSIyb" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 75582366.69720379, "severity": "error", "comparison": "regex", "ruleId": "33239061-d1dc-bd84-9779-ae2d2c3a4b5b", "templateVariable": "hmYvMUrHIoN" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "error", "comparison": "string", "ruleId": "7e9c15ee-e497-d82e-050a-cfbd4209947f", "templateVariable": "kZFaMZAmdgs" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 94464952.96837917, "severity": "notices", "comparison": "regex", "ruleId": "239b0d0e-9513-3df8-3687-dc70ccb9906a", "templateVariable": "iihTsZfT" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "error", "comparison": "regex", "ruleId": "64d2663e-dace-97a6-1bab-a86e58f6be9a", "templateVariable": "OMJaY" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }