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": "f5e5bdb6-249b-2032-3531-a984c684d89e", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": 6531514, "score": 82.16061423978856, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 26596055.07499729, "severity": "notices", "comparison": "regex", "ruleId": "a3bc2e23-19a3-8e7b-d33f-51be4d07cda4", "templateVariable": "zkAzCIlHJfO" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -27422417.64413981, "severity": "notices", "comparison": "string", "ruleId": "84ec0577-55fc-d513-2bff-47debb1b8d2d", "templateVariable": "UpnOUfuOUA" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "error", "comparison": "string", "ruleId": "6bf5be66-513b-ce6d-529d-57529ce9e5b7", "templateVariable": "Uzy" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -67328443.98193571, "severity": "error", "comparison": "string", "ruleId": "a0b7bcf2-2579-947c-747c-9f6d38763954", "templateVariable": "QsYCgQwr" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "eH", "severity": "warning", "comparison": "string", "ruleId": "9c09bfcc-6f43-2182-d4c2-95e910aef7d3", "templateVariable": "PkJ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "error", "comparison": "regex", "ruleId": "db52a993-c5b9-24a5-41b3-5c41c59d1a40", "templateVariable": "rdIpkmir" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "error", "comparison": "regex", "ruleId": "cee3f26a-2666-28fc-25d0-47c956e420d7", "templateVariable": "oXJ" } ] }, { "_id": "junos0", "leaf": "ac525dca-69db-eb2e-6c91-2fc4c4f85513", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 86416861, "score": 66.72543620059245, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -90081120.00966193, "severity": "warning", "comparison": "regex", "ruleId": "c36d1f6b-a0fc-d6f3-7b00-928c06293d86", "templateVariable": "TjbD" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "VVOfq", "severity": "notices", "comparison": "string", "ruleId": "52d6c6ca-ac59-3f77-9302-4468d594e0c6", "templateVariable": "B" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": -79713551.03447206, "severity": "warning", "comparison": "regex", "ruleId": "4d65b1da-ceb9-abfb-5be7-5a2a68175e58", "templateVariable": "pVZAme" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "XqMqhrold", "severity": "warning", "comparison": "string", "ruleId": "8f9325ac-2119-b463-26ce-d6d061bb7d4c", "templateVariable": "fezA" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "gs", "severity": "warning", "comparison": "regex", "ruleId": "3c6ca8eb-f31c-181d-4f92-bd96cbd110a0", "templateVariable": "oxAeIQpWs" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "WKwcWz", "severity": "error", "comparison": "regex", "ruleId": "84f1008e-df74-5cca-9f32-1028a8febeb8", "templateVariable": "neTuMvkjjHf" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -12059273.866813272, "severity": "notices", "comparison": "regex", "ruleId": "f073a0f8-019d-c1e7-335d-41482bd5490c", "templateVariable": "kDcPfRsRGq" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "061cfab5-59fe-522b-6982-16db001897ea", "templateVariable": "oaIcjuv" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "1b816a65-a65f-ec13-544a-b52a44894d52", "templateVariable": "ssJLseXLw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "c98cc009-62cf-da4d-c45a-f7fda4844729", "templateVariable": "VsSu" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "Y", "severity": "notices", "comparison": "string", "ruleId": "57cf080d-425a-14c4-db12-ecfde4f2918d", "templateVariable": "b" } ] }, { "_id": "arista0", "leaf": "da2d2a26-af75-db62-5455-6bade3be145b", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -4799805, "score": 48.445836210113114, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "37159242-ab0e-a509-f918-bd428ba74578", "templateVariable": "xdkMNgrj" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "i", "severity": "warning", "comparison": "string", "ruleId": "7f96e226-3c2f-e436-03ed-31792104725f", "templateVariable": "GFqp" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "d0c8c10f-1165-8f99-dfbc-45af11bc1994", "templateVariable": "uOcziihCcG" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": -44331618.28237062, "severity": "notices", "comparison": "regex", "ruleId": "f5a98f57-5155-3986-eaa7-cc6df4faee8b", "templateVariable": "tgtuP" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "notices", "comparison": "string", "ruleId": "625f588d-1cc9-5110-4d1b-682f96788a34", "templateVariable": "E" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "wIhRJqpyMY", "severity": "warning", "comparison": "string", "ruleId": "ffcfba8c-52ce-d05d-eb3a-f9259ed1db7f", "templateVariable": "V" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "B", "severity": "error", "comparison": "string", "ruleId": "7fe9449c-8817-9f07-09eb-d4fe88eae447", "templateVariable": "TdaRFEjzXR" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -60452007.54300906, "severity": "notices", "comparison": "string", "ruleId": "25fb8af7-073d-28f8-ebdb-b7bbec31dd47", "templateVariable": "SXVS" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "6ba2cc8a-871b-cbd0-2fb2-bfef5d53e125", "templateVariable": "tyPZGCfFiB" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "warning", "comparison": "string", "ruleId": "6e817547-7e05-39a3-0ae8-97e0751a72a9", "templateVariable": "yHk" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "da4dc2f7-8a76-1b11-3df4-41ec3a95d2ee", "templateVariable": "nkNsYYKndar" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 19570190.388397053, "severity": "warning", "comparison": "string", "ruleId": "2889e970-c3b0-d5b9-3691-019a10db8975", "templateVariable": "JqQ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "pyIPsNmAzXc", "severity": "error", "comparison": "regex", "ruleId": "1f720d14-af1c-33d1-2352-6eb1e3b500d4", "templateVariable": "BOeTDcwFp" } ] }, { "_id": "arista0", "leaf": "b1bab6e0-1551-4257-96ed-c4b7d8185c3d", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 88445795, "score": 88.4444562394044, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "warning", "comparison": "string", "ruleId": "a8abfef0-216a-9ddb-69ca-82fc1c3616e4", "templateVariable": "BBBGaOAXuC" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "9c054177-dc11-2a00-23c2-fb24854f09d7", "templateVariable": "CDEw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "JLyfKBBO", "severity": "error", "comparison": "regex", "ruleId": "bb2f30e9-3591-79ea-ecc3-9367a445b63e", "templateVariable": "acdlyghEl" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 97611110.67164227, "severity": "error", "comparison": "regex", "ruleId": "8abcb393-6179-a68a-6d10-544786d37354", "templateVariable": "Y" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 85367271.66559327, "severity": "notices", "comparison": "string", "ruleId": "0dff22ea-d54b-0104-82db-bb98716fa33f", "templateVariable": "XhmYhYNUDLd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "NwJyHzxJX", "severity": "error", "comparison": "regex", "ruleId": "321520fb-a401-8a06-a6f1-3189f1790949", "templateVariable": "gYrkQta" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "error", "comparison": "regex", "ruleId": "26c1c7cd-0bbf-62a4-23c9-33e130930e60", "templateVariable": "dKfVrxpQ" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "warning", "comparison": "string", "ruleId": "30b7a17a-fb41-99a5-c06a-5fa74b46f60d", "templateVariable": "ZhB" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 60691996.8297261, "severity": "error", "comparison": "regex", "ruleId": "b9f2d5f3-7d89-6f2a-dbe7-4a0fc43adf70", "templateVariable": "edR" } ] }, { "_id": "junos0", "leaf": "ac64e7ea-90e8-0d46-3922-31449dbd4178", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -4454559, "score": 9.193975955903323, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 48564225.49823326, "severity": "error", "comparison": "regex", "ruleId": "5b5582d1-a48f-4892-f157-ddc6e70a0d43", "templateVariable": "hL" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "cb40298e-c413-e358-14c8-05f21c696a36", "templateVariable": "HNnILhOwPbY" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "warning", "comparison": "string", "ruleId": "1712bbe7-c75b-393f-53d4-6e7f805c0057", "templateVariable": "qWSUvsJ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "warning", "comparison": "string", "ruleId": "8a7cb58d-f9b2-9e44-1e45-6529593b4c71", "templateVariable": "xTfkeeEc" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "d8e477be-0b3a-9112-25a2-296123682bce", "templateVariable": "WUXyheUmy" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "mszAIWcl", "severity": "warning", "comparison": "string", "ruleId": "122cfbc2-4dc9-0ed2-05af-0130961188f2", "templateVariable": "hvWPDuyVNe" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "error", "comparison": "regex", "ruleId": "d65490bc-4e3b-e087-3834-2e5bd487cc15", "templateVariable": "tvozxkxez" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }