Summary
Get list of reports
Description
Return a list of compliance reports.
Route
GET /golden_config/gc/compliance/reports
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
This method has no parameters |
null
{ "type": "object", "properties": {}, "required": [], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
data | array | List of all the compliance reports. |
[ { "_id": "44be8d73-ef43-12bc-8bdd-7176cbad72e1", "reportId": "b6a37050-6082-ca6d-ab47-433a3a073a6b", "device": "iosxr0", "date": "Thu Apr 25 09:56:38 EDT 2019", "ruleCount": 53519354, "score": 67.34960901553357, "grouping": { "tree": "578d63fe-b45e-f954-d276-9662f03a21c6", "leaf": "bb77c2a1-b51b-2f28-d61b-0be55eb25bd2" }, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 36984495.631500006, "severity": "warning", "comparison": "string", "ruleId": "3b3f1c3d-28a6-ea95-8a7a-075fb3022065", "templateVariable": "olZclCOt" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 8961640.471861094, "severity": "notices", "comparison": "regex", "ruleId": "cc96663f-c4fd-298a-e300-e8944da35185", "templateVariable": "ZhBWEpimeRq" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "cRUzprUMtW", "severity": "warning", "comparison": "regex", "ruleId": "f4090184-2f3b-e58e-0d94-784ee64d34ed", "templateVariable": "CbyPUUPZPi" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "a49764c5-c83a-7a92-cbf6-a2164ed98c54", "templateVariable": "msRd" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "lNjUfNqwj", "severity": "error", "comparison": "string", "ruleId": "16533cdb-a847-046f-909b-ba1de5ae4fc8", "templateVariable": "QmtffxxT" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "9b32e73f-db9d-6c36-ce98-1328a785f543", "templateVariable": "pCjY" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "error", "comparison": "regex", "ruleId": "6e417714-d88a-4ef5-2a51-8cdebebe8370", "templateVariable": "k" } ] }, { "_id": "8dfbc482-9270-416b-c3d8-92781094dc9c", "reportId": "26959e17-0ce0-2533-8227-11c207392c21", "device": "arista0", "date": "Fri Apr 26 09:56:38 EDT 2019", "ruleCount": -34725930, "score": 82.24843469701591, "grouping": { "tree": "d03f2c7a-7a1e-9e74-2b5d-a26697b8167e", "leaf": "7d9bd1f9-ef33-152c-1ca0-246552e8ea3e" }, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": -50178029.28835011, "severity": "error", "comparison": "regex", "ruleId": "afc2045e-3481-b9ee-4bdf-7c8026dd4f45", "templateVariable": "pMgkKpf" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 88944257.96378377, "severity": "error", "comparison": "string", "ruleId": "2b9e585a-c3a9-16c7-ec89-c13a80d7363c", "templateVariable": "CAAJDdwnNIQ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "94fa6dc4-8f69-0fcb-d421-279df2f115aa", "templateVariable": "lWyNWxcMm" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "3772ebc6-3e8e-9490-ce51-773ffcae5cf6", "templateVariable": "ZEAeeuhiP" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "wGgax", "severity": "notices", "comparison": "regex", "ruleId": "b50ad57d-2fc6-659d-d14c-0408973fb67d", "templateVariable": "QU" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -42778239.05425753, "severity": "warning", "comparison": "regex", "ruleId": "934a8073-af69-0bfb-7bfb-6ccf1abfa3e9", "templateVariable": "uh" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "957015f7-7097-59a1-73ac-abe1eace4270", "templateVariable": "cVq" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "IjDHuZXMd", "severity": "notices", "comparison": "regex", "ruleId": "e05833cc-e184-00a6-a3e7-d0dfe795b264", "templateVariable": "dQn" } ] }, { "_id": "d1966342-9020-b198-a4a1-6a58ae01686e", "reportId": "a7f1495d-1dc2-caae-0439-55407ed49912", "device": "ios0", "date": "Wed Apr 24 09:56:38 EDT 2019", "ruleCount": 80632306, "score": 2.505195933324611, "grouping": { "tree": "c04d467c-46cc-dbfc-a507-f927efe05d97", "leaf": "b63f85dd-2881-ce4e-da37-2b98227b0943" }, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 4134093.12395747, "severity": "notices", "comparison": "regex", "ruleId": "239cd701-aab7-ea15-181b-01102b518ca2", "templateVariable": "BssDNuk" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "OunWvIoRuW", "severity": "notices", "comparison": "string", "ruleId": "7e1f9f69-a904-d97c-ebcf-a680d7310580", "templateVariable": "Xph" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "suh", "severity": "warning", "comparison": "regex", "ruleId": "5f640277-d32a-8864-4ee3-609aa1574a9f", "templateVariable": "CEZbPzkV" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": -88742846.63452405, "severity": "warning", "comparison": "regex", "ruleId": "5e8e4846-e6eb-3ec8-b05f-ff82d628cf78", "templateVariable": "m" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -27043573.598969057, "severity": "error", "comparison": "regex", "ruleId": "cbb6dcda-a8db-22ac-4aac-147c2a0172f2", "templateVariable": "TJIcmixm" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "vesLefmBfn", "severity": "warning", "comparison": "string", "ruleId": "2ceee195-3131-f3da-30e5-903d8eadf651", "templateVariable": "qdUAYBY" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "EthEqkgboFs", "severity": "error", "comparison": "regex", "ruleId": "283c2956-8830-e4a3-c197-b015fb65c194", "templateVariable": "nVxQ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "74da1f4d-a201-1c49-07aa-5956b9747758", "templateVariable": "ICNXKjTL" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "notices", "comparison": "string", "ruleId": "e3dac5ff-d786-5a85-2f87-7f7b19fd82ab", "templateVariable": "BNPCMNroMv" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 33981855.67169553, "severity": "error", "comparison": "regex", "ruleId": "caa467a8-2479-23cb-ac6b-241647d433d5", "templateVariable": "TIzU" } ] } ]
{ "type": "array", "items": { "$ref": "complianceReport" } }