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": "9827ec30-cedd-068c-07ea-b2d3d4107d1b", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -69938969, "score": 17.2970884120071, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 93789634.68389815, "severity": "notices", "comparison": "regex", "ruleId": "8be6bbae-b123-5b19-f163-399982c5673d", "templateVariable": "bLvHl" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "vpacNhAMCQI", "severity": "warning", "comparison": "regex", "ruleId": "e731f589-87fb-4a62-b992-99ed866d93a7", "templateVariable": "XVByGiEkR" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "aIjpr", "severity": "notices", "comparison": "string", "ruleId": "3e1e2609-ad99-11f6-bfb4-d09b6120513a", "templateVariable": "veQJDtEja" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 50448064.757652014, "severity": "notices", "comparison": "regex", "ruleId": "c02ece9f-cf24-6c78-1776-63b4f6879514", "templateVariable": "ra" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "ce703b8a-8bb3-4ca0-d0ad-d35422bb8170", "templateVariable": "Xz" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "6caba187-e884-9e60-6eba-7cdf691753c9", "templateVariable": "WtxAaLQAiI" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "TfpuT", "severity": "error", "comparison": "string", "ruleId": "4e541bda-88a5-e004-babf-5e5f3acd4a96", "templateVariable": "LUuMmica" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -12141483.029122561, "severity": "warning", "comparison": "string", "ruleId": "67df3dc0-c1bd-0bbb-1a73-eafaa67a9f89", "templateVariable": "UZJMgZSJMA" } ] }, { "_id": "junos0", "leaf": "4f982571-b62d-1a30-f883-0ac72529c56b", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 60800299, "score": 92.82024581331581, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 26817374.7318234, "severity": "warning", "comparison": "regex", "ruleId": "35f4c212-4a28-7909-1ba8-6965a935926f", "templateVariable": "CtlQBnhSXJ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "GpBFCL", "severity": "notices", "comparison": "string", "ruleId": "8cf60c5d-a03a-33da-5577-08e5282a7be0", "templateVariable": "lwgkxPn" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "warning", "comparison": "string", "ruleId": "de8b44d4-a34e-d0f5-b930-68a3718530e8", "templateVariable": "CrWmt" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "notices", "comparison": "string", "ruleId": "9eb64261-5172-a7a7-2b22-3185319ccee0", "templateVariable": "VzCOAyOiao" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "IQcgQgbhEAz", "severity": "warning", "comparison": "regex", "ruleId": "6472ba3e-0dc8-1f83-c16b-7711bbc7e7cb", "templateVariable": "rtvPGXBSu" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "dfiyye", "severity": "warning", "comparison": "string", "ruleId": "24053f4e-6995-554e-c2f2-6b4950378742", "templateVariable": "cNxMWfue" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "zOUZrf", "severity": "warning", "comparison": "string", "ruleId": "a2cfa84c-86a3-f45c-1b69-100f01dca4d4", "templateVariable": "hIXR" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 20498137.50578542, "severity": "error", "comparison": "string", "ruleId": "65c04deb-aff8-cf9e-466c-3ce105321328", "templateVariable": "v" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "YKQgWouprV", "severity": "error", "comparison": "string", "ruleId": "6ba52117-6079-0cc4-91b6-047573720e3b", "templateVariable": "rTQwdx" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "QYF", "severity": "error", "comparison": "regex", "ruleId": "37e48847-dc8c-0d51-1d5b-09e9bfdb39bc", "templateVariable": "fcnSaAuxvnF" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "warning", "comparison": "string", "ruleId": "ede6ca83-229f-acac-d226-85581b85379b", "templateVariable": "PaRLF" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "2acbe74e-14af-642c-0a3f-61b52565900c", "templateVariable": "DA" } ] }, { "_id": "ios0", "leaf": "ae2eadea-9363-3060-07f8-a6355c20cae8", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 97329850, "score": 4.4944799402262925, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "81bdcb6a-e2b3-dc42-5cec-5ae1ad2d8c77", "templateVariable": "QWpVpXRbfrF" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "c8f844d6-5552-2709-e6ec-8bf07157d23b", "templateVariable": "LJro" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 70627920.00785428, "severity": "error", "comparison": "string", "ruleId": "b2df8a79-e3f5-8711-3405-9ccd79afb2eb", "templateVariable": "KcRMvVToeo" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "warning", "comparison": "string", "ruleId": "14fe564e-816c-c568-71fd-00829787c7e1", "templateVariable": "RCytaelKwk" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "VuRjRqqZ", "severity": "notices", "comparison": "string", "ruleId": "e8ab3bfe-4292-d49e-594d-4f01c256e489", "templateVariable": "dkp" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -92461119.1975746, "severity": "error", "comparison": "regex", "ruleId": "effe2d6d-9e1d-0839-2324-25d208fcc9fa", "templateVariable": "fPA" } ] }, { "_id": "arista0", "leaf": "56857c14-11b9-5f7e-8929-17bbf97bb08f", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -86625826, "score": 51.03260424116027, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "13d75d82-fd29-7964-e19d-a9d1fffba215", "templateVariable": "zmsxx" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "zWUiHJ", "severity": "error", "comparison": "regex", "ruleId": "12cbdcee-f37d-d3a9-fea2-a9b0afcc73f2", "templateVariable": "Dyhua" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 88448076.78042406, "severity": "notices", "comparison": "regex", "ruleId": "86f115b9-64fe-d938-aae9-9ce34f39663d", "templateVariable": "neztmlUKJhm" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "f", "severity": "notices", "comparison": "string", "ruleId": "9540bf47-a5f4-e284-36f6-91fdb038d6d8", "templateVariable": "aIXjMpr" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -43741635.539533876, "severity": "warning", "comparison": "string", "ruleId": "50335625-0437-f8b8-85f1-3fbbc9ecb5f4", "templateVariable": "zMJRyi" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "d1640854-e053-a85f-cf7c-775713300c54", "templateVariable": "fwcTkDRPzR" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "jMsChBFy", "severity": "error", "comparison": "regex", "ruleId": "439c11c1-61b5-1714-2647-29c6037ad46f", "templateVariable": "Pi" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -82402956.18678819, "severity": "warning", "comparison": "string", "ruleId": "0a1684ab-c814-da5f-0c28-2431c79aef4a", "templateVariable": "yKoWc" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -50881524.42263287, "severity": "error", "comparison": "regex", "ruleId": "60b2ca42-72df-d8de-65e9-70c2584bd689", "templateVariable": "MEc" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "error", "comparison": "string", "ruleId": "42b2f785-9424-14a7-c5b6-e306cdbf79b0", "templateVariable": "gplN" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "B", "severity": "error", "comparison": "string", "ruleId": "d6492304-c946-d445-9e0c-03b8975dcf5e", "templateVariable": "eNIv" } ] }, { "_id": "iosxr0", "leaf": "8e765c02-2f53-4d50-64c3-cf9395e7603a", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": -60429492, "score": 41.68147415529502, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "xQMa", "severity": "warning", "comparison": "regex", "ruleId": "ce27f725-ba28-ff70-8fcf-d08b46e4786c", "templateVariable": "ztTimnPbMtj" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "QRQj", "severity": "error", "comparison": "regex", "ruleId": "c1c2f63e-6f3c-b876-b39c-323a1e1b7a6f", "templateVariable": "YSBjmKiZL" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": -98983831.77900891, "severity": "warning", "comparison": "string", "ruleId": "f02ff4d9-3894-8af2-a279-1213c0136ba3", "templateVariable": "tgzINRyjNjG" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 44574463.01338476, "severity": "error", "comparison": "string", "ruleId": "50d7b184-71f7-f0ce-cf9c-41705f1a269d", "templateVariable": "Ug" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "warning", "comparison": "string", "ruleId": "d321d6c0-a59e-cafb-3922-10da0f678c0e", "templateVariable": "lkimZbIEwHK" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 2042844.4906730503, "severity": "error", "comparison": "string", "ruleId": "d7fdae04-88f7-ebdb-6f79-4ed90db96807", "templateVariable": "oWWpRtYhTYT" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 90355002.37988722, "severity": "notices", "comparison": "string", "ruleId": "423e045e-cacc-7682-2659-8b34498ad994", "templateVariable": "oVRYII" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "error", "comparison": "string", "ruleId": "a9377fab-98f7-fbcf-eb86-61b1ec188339", "templateVariable": "XySO" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "DSId", "severity": "error", "comparison": "regex", "ruleId": "82526fe9-3a39-50e6-ee2f-23709079f644", "templateVariable": "pd" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 87736762.99226153, "severity": "warning", "comparison": "string", "ruleId": "a52a4564-a4d0-991c-a797-0583baca564c", "templateVariable": "d" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }