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": "arista0", "leaf": "1983ff9f-386f-9865-8ab7-d8f02f6e89f3", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": -77256210, "score": 0.5663688369252018, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "cmmmmgxjX", "severity": "error", "comparison": "string", "ruleId": "6d633efe-4789-7074-baa8-79311be415b9", "templateVariable": "u" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "AprIUXwSMk", "severity": "error", "comparison": "string", "ruleId": "ff2d323e-15c9-176d-0862-1bcea834df91", "templateVariable": "T" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "BVG", "severity": "notices", "comparison": "regex", "ruleId": "d03dd877-c4e7-4327-f722-2ac666b5cb37", "templateVariable": "Jkh" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "866411dd-b495-f4f0-fd2a-ac8cc885245c", "templateVariable": "U" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "error", "comparison": "string", "ruleId": "7c3e3775-352c-3780-5bdb-16dd41102421", "templateVariable": "IzvVyuzi" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "error", "comparison": "regex", "ruleId": "5286f828-af18-deaa-9e84-7a543646eca0", "templateVariable": "jdlQzNCQ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "du", "severity": "notices", "comparison": "string", "ruleId": "8695c4b0-dcae-13a0-2510-c4fb3213f693", "templateVariable": "PgayumOeJa" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": -33024631.95754184, "severity": "warning", "comparison": "string", "ruleId": "e12af6d6-8b42-0175-71ce-0a176864cba2", "templateVariable": "Kzk" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "FWqQHgzA", "severity": "notices", "comparison": "regex", "ruleId": "029f7b8b-8965-26f1-e5d3-73f051c8b3d6", "templateVariable": "MjAtxa" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "a76f3469-9ef7-94ae-c6db-a30968181185", "templateVariable": "rQ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "4c372b86-553b-8846-b2c3-ada3aa5fbfbd", "templateVariable": "oK" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "warning", "comparison": "string", "ruleId": "f4e3a20a-7b53-a45b-a9ac-ec1a2a56bd0f", "templateVariable": "NpfYWPs" } ] }, { "_id": "arista0", "leaf": "ed71f2cc-b693-427f-021c-0c70ec94538a", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 14981625, "score": 58.836064915348715, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 32774696.957243294, "severity": "notices", "comparison": "regex", "ruleId": "a66e81a4-fea3-cf2b-badc-9ff69387d498", "templateVariable": "JSRh" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "796a15df-4dd2-6725-91db-674a73215ad9", "templateVariable": "zNxi" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "zsKSEAHR", "severity": "warning", "comparison": "regex", "ruleId": "c736f246-4bb8-7ca4-f2a6-2ed6eb876d29", "templateVariable": "qOz" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "yzQwJVjoP", "severity": "warning", "comparison": "string", "ruleId": "57ca9e0a-cc42-40f8-3807-a2d2d10a7d0c", "templateVariable": "UjcUy" } ] }, { "_id": "arista0", "leaf": "061dbe43-a3af-5cd9-d8ae-80fb6885c55e", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 22588884, "score": 11.76561582878275, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "oh", "severity": "notices", "comparison": "string", "ruleId": "3df6bf18-438a-916b-5895-189b7f98e17a", "templateVariable": "Mk" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "n", "severity": "error", "comparison": "regex", "ruleId": "ca1163d6-6661-5e03-f6c9-17688ac21939", "templateVariable": "Ibqg" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "jKHFVZSpEO", "severity": "warning", "comparison": "regex", "ruleId": "e1b39621-75eb-1afe-f49a-e5c62d97e44d", "templateVariable": "n" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -87122800.86582096, "severity": "notices", "comparison": "string", "ruleId": "382570c3-b23c-4af6-d5be-5f3847c730da", "templateVariable": "IPZLSJz" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -22054153.280421883, "severity": "notices", "comparison": "string", "ruleId": "1a04abc4-e0cc-0a79-b48d-c4a7465ff338", "templateVariable": "YS" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "LCraTlhg", "severity": "notices", "comparison": "regex", "ruleId": "920bc702-881c-9f6a-5be4-384b1e6138f8", "templateVariable": "sxU" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "heZ", "severity": "notices", "comparison": "string", "ruleId": "d64c68e6-a2a8-7d17-f4da-2d63fdeadbc5", "templateVariable": "SmSDRYMSuhO" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "error", "comparison": "regex", "ruleId": "ad6af7e4-aa88-20f8-9214-3231a8d89f4a", "templateVariable": "qzsStwnbEt" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "DcsNDhOwy", "severity": "error", "comparison": "string", "ruleId": "b11f83d9-b22f-da65-4f13-51f607b7b73c", "templateVariable": "EPEv" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }