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": "39197501-7f94-38f0-6f9c-1071b7f4f1f8", "reportId": "2ef1489a-372c-f0c4-74f8-05d2d3fbe7c4", "device": "arista0", "date": "Fri Apr 26 09:56:38 EDT 2019", "ruleCount": 25505727, "score": 65.24361086304495, "grouping": { "tree": "678da8e2-2500-bc6a-1da8-da2fc679cb00", "leaf": "62bfb43c-bd89-7dc5-8b18-3c91b8076dbb" }, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "acc0c64e-ff41-7f67-fce9-5c23548d672d", "templateVariable": "bgZnFjR" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "warning", "comparison": "string", "ruleId": "0718c430-4c4b-a80a-6d43-2d2e8282585a", "templateVariable": "hlGunnmJYcG" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "notices", "comparison": "string", "ruleId": "9b69f99f-79ae-2b4d-a56e-ae1124a5030c", "templateVariable": "NLjcL" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": -49181794.79985452, "severity": "notices", "comparison": "string", "ruleId": "effb7d3f-6163-58c8-699f-0e6c59a5db79", "templateVariable": "OGBNLaZthb" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "gT", "severity": "warning", "comparison": "regex", "ruleId": "bf2d99ce-ca0b-4c55-378c-05c0c47a86e6", "templateVariable": "Hp" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "error", "comparison": "regex", "ruleId": "2efc0a25-4a5d-7c11-a035-e3a67fe1b221", "templateVariable": "QUImuk" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "CUaCX", "severity": "notices", "comparison": "regex", "ruleId": "9ec6b54c-2d0b-8b92-6b48-8493b5d7350a", "templateVariable": "M" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 80262226.44927007, "severity": "error", "comparison": "string", "ruleId": "05c197fd-9306-17cd-e0ce-907379f0f353", "templateVariable": "SajENv" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "czfViGM", "severity": "notices", "comparison": "string", "ruleId": "d75ba66d-e262-fc7d-9266-30ad55a4f77c", "templateVariable": "qutG" } ], "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": "06a1d97e-81d7-e051-531f-aa598397a3c5", "templateVariable": "GmtiQtgoSRG" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 29666794.596020907, "severity": "error", "comparison": "string", "ruleId": "11ea4510-c14b-9832-0a4e-afe1fb1fbc54", "templateVariable": "lzwpYAsBCK" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "5dfac77f-f6d8-fafa-9339-8951776535dc", "templateVariable": "n" } ] }, { "_id": "b859fced-d72d-1f8a-b9f0-1479f5bab77a", "reportId": "8ffa2e0f-d7e8-f071-ffc2-50ff48118bd0", "device": "iosxr0", "date": "Wed Apr 24 09:56:38 EDT 2019", "ruleCount": -6038515, "score": 1.7585930402231664, "grouping": { "tree": "4134a01b-c153-9436-d32f-1af5dad56cb5", "leaf": "21d560ad-e68b-cd85-365b-ef3d84c2f059" }, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "UNtVsC", "severity": "error", "comparison": "string", "ruleId": "e41df1f0-b0be-1a54-7c1b-187eacf73b78", "templateVariable": "jKIeKSNJI" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "notices", "comparison": "string", "ruleId": "4c709e13-1611-3462-02ea-56048e7401bd", "templateVariable": "sGDO" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "notices", "comparison": "string", "ruleId": "1d3af1b3-5dd1-030e-7a47-16a996f1b553", "templateVariable": "ZvCxSRU" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "TSFpBD", "severity": "error", "comparison": "regex", "ruleId": "48b8514f-fae6-de16-65d6-c48cc1f24409", "templateVariable": "Zk" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 43995801.7112633, "severity": "error", "comparison": "regex", "ruleId": "ea508fff-07bc-4784-0c09-a0f9b83eb4a7", "templateVariable": "Ry" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 55215265.27421966, "severity": "notices", "comparison": "string", "ruleId": "cbd7cd3f-8073-3b5e-99df-f48908209f69", "templateVariable": "QsP" } ] } ]
{ "type": "array", "items": { "$ref": "complianceReport" } }