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": "3c9604eb-04a2-7ed2-f302-e447fa9327d9", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 32219966, "score": 11.03786369060975, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 78320386.07959527, "severity": "error", "comparison": "regex", "ruleId": "00970c6d-0568-b852-38d4-e388b380be31", "templateVariable": "FgNy" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "PgqmXZfe", "severity": "error", "comparison": "regex", "ruleId": "16c1ec1a-60b6-3854-938a-e16ef01e6db3", "templateVariable": "s" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "notices", "comparison": "string", "ruleId": "cde5364e-2b21-8040-3471-25c11d9c4ef8", "templateVariable": "Mn" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "d99677c8-9c1a-700e-0c03-2cdf5f9d13f3", "templateVariable": "phvx" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "4be9ac6c-1c51-c2a0-9b79-dcb32daf437a", "templateVariable": "xmyayRurcSt" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 40123381.69947064, "severity": "error", "comparison": "string", "ruleId": "167f3371-00b8-effc-85b7-84b29179bc55", "templateVariable": "IF" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "notices", "comparison": "string", "ruleId": "3705fdea-f9d5-9cd0-7b04-49a2e8c09d5a", "templateVariable": "vDT" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "OfHfnpwkNAL", "severity": "notices", "comparison": "regex", "ruleId": "ee6a7385-6f90-df26-459a-c2e9765e9ca2", "templateVariable": "pBX" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 10958517.906339481, "severity": "warning", "comparison": "regex", "ruleId": "8a6e47a8-ae71-285a-e589-94a56f8e1dc3", "templateVariable": "dDMh" } ] }, { "_id": "junos0", "leaf": "d464ce50-e747-3545-5d26-f34a67435403", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": -35647731, "score": 1.2667971132082956, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 73693556.84328967, "severity": "error", "comparison": "regex", "ruleId": "19090f3d-ec6d-a9e8-d38a-12383b6f505a", "templateVariable": "i" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "LmQfd", "severity": "notices", "comparison": "string", "ruleId": "5b65e9cb-e45b-6c38-b0bb-92090983b4f7", "templateVariable": "V" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 52641060.08012739, "severity": "notices", "comparison": "regex", "ruleId": "facde954-3bb9-76cb-3d1a-af6fae7f7aa7", "templateVariable": "jdYgPTZ" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 92605419.29914105, "severity": "error", "comparison": "regex", "ruleId": "9d69fa92-b752-dbb4-5940-805bb45d44b5", "templateVariable": "NqeO" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "notices", "comparison": "string", "ruleId": "4a987331-5a7d-69ab-993a-b337c3279347", "templateVariable": "msZbxYF" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 3890797.491291657, "severity": "notices", "comparison": "string", "ruleId": "d2545806-523e-b17e-cf3c-1b2a754af16e", "templateVariable": "ah" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": -15771506.604480788, "severity": "error", "comparison": "string", "ruleId": "c9048276-c14b-12c5-fe73-248ce0f94732", "templateVariable": "DVNlHhmd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "AEEZTVHK", "severity": "warning", "comparison": "string", "ruleId": "5f3cb7f0-f2af-b368-e30c-96bfea12841c", "templateVariable": "pNNL" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "f4bfb079-1926-3cd3-2534-865d954d5cb8", "templateVariable": "ugQBMrFnDK" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "ri", "severity": "notices", "comparison": "string", "ruleId": "a8f28c8c-561e-b4ea-ddb5-fb8f5fb9135a", "templateVariable": "blpUv" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }