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": "a90bb810-a993-bc65-27d5-0135bdfe79bd", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -47916791, "score": 24.903283170597888, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "137007a9-e944-0157-e044-b3eb69ea7b6b", "templateVariable": "eMqcnSJCR" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 24876563.13531436, "severity": "notices", "comparison": "string", "ruleId": "0db0b24f-4831-174f-7bd9-03ae7f1b946f", "templateVariable": "dJIhAAHv" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 96298656.78913751, "severity": "notices", "comparison": "string", "ruleId": "14d671fa-8db8-ae1a-9032-b4589e5ed6d3", "templateVariable": "XYptGlHh" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "laJmFbRj", "severity": "warning", "comparison": "regex", "ruleId": "4b9c5246-b061-54f7-1b7d-95fc852ca7ec", "templateVariable": "SsAJCnQELf" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -32339793.07533738, "severity": "error", "comparison": "string", "ruleId": "cce22986-125d-e52a-8a68-47ac0a2acc01", "templateVariable": "Tvefh" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "56e836a2-67c1-03ce-66e8-4e73e38f7d00", "templateVariable": "pRxiSVzRJXv" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "error", "comparison": "regex", "ruleId": "dee7be2d-7816-db1f-ae4d-11383a25f68d", "templateVariable": "rEBwy" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "iYAQnWtET", "severity": "warning", "comparison": "string", "ruleId": "c34a3b9a-a3ef-5877-24b9-439c548565c8", "templateVariable": "bWVE" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "c9fc434b-eb58-4ba5-454c-221a3126b19f", "templateVariable": "eRl" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "a1417696-e4c6-97b5-2d1f-6d657dbd86d4", "templateVariable": "TRHS" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "error", "comparison": "string", "ruleId": "848f28cd-210b-2fcd-77d0-8fcf92577af8", "templateVariable": "Mdm" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "WWxcWUsZBf", "severity": "notices", "comparison": "string", "ruleId": "4bdda949-e64b-c30b-7cdf-993988bf35fd", "templateVariable": "zmqmB" } ] }, { "_id": "iosxr0", "leaf": "7db02303-bca1-751b-0da7-433ae7944681", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": 86985327, "score": 38.015588652188924, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "3d8200ef-91fd-f163-e1f8-43828e1ba488", "templateVariable": "ZJilfoTc" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "W", "severity": "warning", "comparison": "regex", "ruleId": "527cb681-dce2-ee55-6b93-054a764975e6", "templateVariable": "tgaLkaNv" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "error", "comparison": "string", "ruleId": "d06d33f8-0c18-b924-987a-04c723ec0e83", "templateVariable": "bocw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -89595972.32284589, "severity": "notices", "comparison": "regex", "ruleId": "03b0e139-41e3-ff67-8ee8-7f8281ad7fe9", "templateVariable": "ULrGBUVp" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 70309152.0232563, "severity": "warning", "comparison": "regex", "ruleId": "5df86b23-0b82-2523-8225-bf0a7a4efb33", "templateVariable": "r" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": -49479969.39388375, "severity": "error", "comparison": "string", "ruleId": "c1d8cc45-ce52-cca3-7ef0-37282add5077", "templateVariable": "Vxr" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }