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": "iosxr0", "leaf": "cf86856a-d6b1-05ff-b19f-d392d0f8e1df", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": -84468099, "score": 2.0842269285253012, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "lFRuFZmJQmO", "severity": "warning", "comparison": "regex", "ruleId": "232ca131-546b-4363-380b-d8249f0f827c", "templateVariable": "RCsTM" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "dbec8ff4-ca39-bea5-fb53-3905949f7f6f", "templateVariable": "OhANjgT" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 16477467.888824731, "severity": "notices", "comparison": "regex", "ruleId": "a4c8151f-cd04-6c47-8478-0bd1824961d8", "templateVariable": "gd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "Z", "severity": "notices", "comparison": "string", "ruleId": "ef29ce87-e572-03a0-b71f-fb97287c3dfc", "templateVariable": "ZfrdGTp" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "e76db0a9-d156-7cd0-badd-718978b378df", "templateVariable": "dn" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "riY", "severity": "warning", "comparison": "string", "ruleId": "df4c54bb-54db-1b1f-3fa3-edcf110cf442", "templateVariable": "BQPxoonDvys" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "FevOeliV", "severity": "notices", "comparison": "string", "ruleId": "c90d56d9-44b3-0b45-912e-7c977a362686", "templateVariable": "CjBhPeHWHg" } ] }, { "_id": "junos0", "leaf": "4eface29-e039-dc85-2385-4b0b711eeadd", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": 12326213, "score": 24.5466282043175, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "DHKVAHMgwpz", "severity": "error", "comparison": "string", "ruleId": "1f46ed4c-b718-6938-bf60-564d5abc0629", "templateVariable": "enx" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "l", "severity": "notices", "comparison": "string", "ruleId": "2e15b81c-67f1-9271-661d-a709220a0169", "templateVariable": "NYioAmC" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "AaClhFSmag", "severity": "error", "comparison": "regex", "ruleId": "3e96e8c4-61dd-8bc8-1575-c4843594f539", "templateVariable": "bkhwEu" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "a97fac94-8ab5-3b16-670a-66b44649d86e", "templateVariable": "wDQQDE" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "6587d667-3e17-af54-b06e-ba228049a93e", "templateVariable": "jiKqmFe" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "li", "severity": "warning", "comparison": "regex", "ruleId": "0fa97c57-1a19-8c81-016c-8c58288543b9", "templateVariable": "brvBhfjdz" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "994a19da-9a3e-b6bf-29ff-56ee544ff17c", "templateVariable": "RmSLxbGGVqr" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "vZc", "severity": "warning", "comparison": "string", "ruleId": "6ecdb04a-b9e1-b92e-4442-c29116c588cf", "templateVariable": "WYYgXneHC" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "wyunGXp", "severity": "warning", "comparison": "string", "ruleId": "d2f18ad1-5814-cb18-0124-359d69a26b29", "templateVariable": "iLaK" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": -44423393.64882804, "severity": "error", "comparison": "string", "ruleId": "ce633b27-9be2-d2d4-f1c6-02a06d2a0963", "templateVariable": "sXMZWQ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 12596402.858469352, "severity": "notices", "comparison": "regex", "ruleId": "e116cf87-0456-c598-bef7-50de5330721a", "templateVariable": "YpMS" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 81363662.9858455, "severity": "warning", "comparison": "regex", "ruleId": "e27491e4-a239-c011-183d-ba40ac5aaab8", "templateVariable": "x" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "cgNi", "severity": "warning", "comparison": "string", "ruleId": "322dd5f4-7ab9-6425-56ae-bd47d0a50c7d", "templateVariable": "oEpCD" } ] }, { "_id": "ios0", "leaf": "bbbd038a-59ed-d0d3-116b-6194384316bd", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 50969775, "score": 21.73968153502759, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "adf049b9-4641-a70e-ab9a-6b627e9048e1", "templateVariable": "b" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "notices", "comparison": "string", "ruleId": "27213e07-5714-207a-77d8-bc848751bff6", "templateVariable": "rsxomyLA" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "6a0b2815-380c-4257-2987-256e9d6ffa02", "templateVariable": "gY" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 26514588.71852146, "severity": "warning", "comparison": "string", "ruleId": "d7c79e59-2064-1dc9-ab04-c7c61d96a5b4", "templateVariable": "gQ" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "SDHPvHn", "severity": "notices", "comparison": "regex", "ruleId": "aa42f7a0-5aff-7405-01b3-dd9c20668b59", "templateVariable": "c" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "warning", "comparison": "string", "ruleId": "0bf248dd-f014-8fc5-5cd4-fc93ceaed7a8", "templateVariable": "lLhPogD" } ] }, { "_id": "iosxr0", "leaf": "63279eb5-5400-6e3e-27d0-cc45599ac2e7", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 20344006, "score": 14.280832719071078, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": -3355392.420499742, "severity": "warning", "comparison": "regex", "ruleId": "893f6a64-2358-2ce7-c80f-c0a37c2be1b0", "templateVariable": "sXaCgL" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "bcccdc59-eee0-1cdf-8e62-a63c29e5bf67", "templateVariable": "RqRp" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "78d029e7-d304-aa05-722c-e1818db2dafa", "templateVariable": "ifI" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "DVv", "severity": "warning", "comparison": "regex", "ruleId": "a0af67b3-b8c9-0612-1add-1767507ffadf", "templateVariable": "eGsXTmKcFP" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "c070bc83-06e6-f7f3-c941-22e6b90a2334", "templateVariable": "qKrU" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -88336586.0209525, "severity": "error", "comparison": "regex", "ruleId": "05ed0757-e526-ce58-ca6d-cb5c4dc16d91", "templateVariable": "crEqpdoPYP" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "warning", "comparison": "string", "ruleId": "c3a6299a-2b25-f60a-4d0a-b7d20ad2dd6b", "templateVariable": "JwazXEFhTXd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "aRbVAL", "severity": "warning", "comparison": "string", "ruleId": "1a0b5fd1-6130-000c-60d0-c087a8624bbd", "templateVariable": "QEppZbVAqdw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "BHG", "severity": "error", "comparison": "regex", "ruleId": "46c0b594-c808-27f3-606a-daba44ea2ede", "templateVariable": "RMSTT" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "GimdTOby", "severity": "warning", "comparison": "string", "ruleId": "8f8988a0-e29d-9c0a-edaa-0f522ecc7707", "templateVariable": "ehZwKNhQGg" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -24645957.178516388, "severity": "warning", "comparison": "string", "ruleId": "37e7d4d5-5b13-be14-7dcc-b71923eb61b1", "templateVariable": "aWBdRqnxzFP" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 46690655.82536152, "severity": "error", "comparison": "regex", "ruleId": "2fd82b5f-4b6a-74aa-9e05-0c26ca4c2020", "templateVariable": "wG" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": -89886842.97782941, "severity": "notices", "comparison": "regex", "ruleId": "f9216050-6656-caf2-259d-ba3d319cc73d", "templateVariable": "mXUdjrtKf" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "DrJV", "severity": "warning", "comparison": "regex", "ruleId": "39d32597-3407-ecc4-7fa6-b19729a7f157", "templateVariable": "jmIHUzst" } ] }, { "_id": "iosxr0", "leaf": "71ab7022-1f26-5f4d-4b8c-5728b9084083", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 27719868, "score": 80.97797850643535, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "notices", "comparison": "string", "ruleId": "b6f9cfd1-452b-80f3-c5a8-2a9c70f0de9c", "templateVariable": "UPFsaOZAnh" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "error", "comparison": "string", "ruleId": "79848d43-1e8a-e52a-ebb0-e84cf3128e49", "templateVariable": "MyRsvi" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "5df671fe-7a9a-f750-1ef8-4dd76cc3d73e", "templateVariable": "fwyLnka" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "wfzRQmM", "severity": "error", "comparison": "regex", "ruleId": "88005954-798d-5110-1dfc-0200d17a3d24", "templateVariable": "tLsxoPYxuO" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "Twh", "severity": "warning", "comparison": "string", "ruleId": "6533c550-f821-6da6-fb00-2fae4d2e1d78", "templateVariable": "l" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "dfpAuXADhn", "severity": "error", "comparison": "string", "ruleId": "cccdae78-bc19-ab56-38a9-0c98b468243c", "templateVariable": "DaoGsmX" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "warning", "comparison": "string", "ruleId": "ba84e2ce-c72f-d82e-1d2a-efa7b13486ce", "templateVariable": "AKxzWdlhl" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }