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": "03a0722e-9bc2-8978-3532-d7e55dead835", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -69770108, "score": 57.558630748007666, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 95906209.53998354, "severity": "warning", "comparison": "string", "ruleId": "042d1660-cc33-da1a-9393-2ce522f024d5", "templateVariable": "LMRYgYv" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 91475478.49066973, "severity": "notices", "comparison": "string", "ruleId": "da5a3937-f5d2-a76a-bf5f-4e96af10d90c", "templateVariable": "aaNyc" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 75622706.02011672, "severity": "warning", "comparison": "string", "ruleId": "547cbc42-be6c-be1d-c0cf-aa72d26f5cb7", "templateVariable": "WSt" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "54b87224-223b-3b40-9ddf-8637d821d8fd", "templateVariable": "wNSCcFyze" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "59aa97a8-91e2-8b11-238e-406655515999", "templateVariable": "BX" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "XDT", "severity": "error", "comparison": "string", "ruleId": "bb75fde2-d66d-6d2e-5577-da9894978fef", "templateVariable": "xjiXI" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "NlqF", "severity": "notices", "comparison": "string", "ruleId": "3fe3d59b-5a28-5630-abdb-672c65f556b8", "templateVariable": "CWChPZqr" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -42221116.18682329, "severity": "warning", "comparison": "regex", "ruleId": "294f8bb5-6eb3-cc7b-77ce-d4d9180c9154", "templateVariable": "KE" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "error", "comparison": "string", "ruleId": "d9299d0e-d5cc-d1d6-9a1a-d6b0cb3ce2bb", "templateVariable": "Fqaxu" } ] }, { "_id": "iosxr0", "leaf": "f829f347-1ec6-4482-e2c2-bcb5bf42f345", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": 12031889, "score": 5.020436476437551, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "error", "comparison": "string", "ruleId": "95b32959-d2b0-e7b4-d3d0-8a07d6f5a37e", "templateVariable": "sFDUpvlj" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "warning", "comparison": "string", "ruleId": "eedde4dd-90d9-9c94-bd11-6dc0d6b467af", "templateVariable": "kNJMnVn" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 27208958.067305207, "severity": "error", "comparison": "string", "ruleId": "2304c3a5-33c1-bb55-3a95-54e0ed7a2fd6", "templateVariable": "ngmF" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "46991541-e778-4e00-7ccb-117458387648", "templateVariable": "Jsw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -22914041.21660076, "severity": "warning", "comparison": "regex", "ruleId": "eac7295f-cd36-1ef8-b2c6-9df2832ce593", "templateVariable": "CDaN" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "J", "severity": "warning", "comparison": "string", "ruleId": "f691e57e-ee6a-dfd6-89d7-c946a8d3063b", "templateVariable": "NIlW" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "YFyzsZYITBM", "severity": "warning", "comparison": "string", "ruleId": "3528248b-e019-af02-320a-d7988bbec1ad", "templateVariable": "iBh" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "lp", "severity": "notices", "comparison": "string", "ruleId": "86ebfd14-64ba-4308-37cf-b62959ed4d76", "templateVariable": "UT" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }