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": "de555ace-4054-e5ba-6250-131fbefdc3d4", "reportId": "598b4a19-2989-4d36-1ed7-82f0877958a2", "device": "iosxr0", "date": "Thu Apr 25 09:56:38 EDT 2019", "ruleCount": 68579258, "score": 24.328113507191418, "grouping": { "tree": "d7e0ec68-d9f8-0825-fd2f-9c2440f59955", "leaf": "c2df92c2-7b0b-4cff-a6b1-2a35055eee74" }, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "srSzS", "severity": "warning", "comparison": "regex", "ruleId": "04940bc7-52cf-ea6c-6b48-7e8c5e7d3912", "templateVariable": "ISK" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "notices", "comparison": "string", "ruleId": "d5af07f4-3da9-7025-2b8a-f4f6ae7267ee", "templateVariable": "wnjQQ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "d6b379ac-4c70-f316-9301-5fe978dcc09b", "templateVariable": "w" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "79d6b47c-c942-8b2b-c15a-461b413d833c", "templateVariable": "SEwJu" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 69304720.18129405, "severity": "notices", "comparison": "string", "ruleId": "78065243-4798-de9c-440a-adc525dbcc8e", "templateVariable": "vCCv" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 72728775.34493315, "severity": "error", "comparison": "regex", "ruleId": "2a35ca89-fefa-0368-74aa-0418761e517c", "templateVariable": "kdJxSRxJbTe" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "A", "severity": "notices", "comparison": "string", "ruleId": "cc7eec14-6344-178f-1129-d18c3d5f8ccc", "templateVariable": "c" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "buXkthQqd", "severity": "error", "comparison": "regex", "ruleId": "a7660bba-6fea-1ab3-f2e9-9f9f9601ab6e", "templateVariable": "iHpXFYjWXh" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "hyJmnqlX", "severity": "error", "comparison": "regex", "ruleId": "ea83f372-551f-e541-1738-6c1c59d66367", "templateVariable": "tBgFud" } ] }, { "_id": "bbba298f-be8e-de23-1fda-c49d39b21561", "reportId": "d34f2dd2-766c-40e9-1d15-2a64958ad510", "device": "iosxr0", "date": "Wed Apr 24 09:56:38 EDT 2019", "ruleCount": -53392394, "score": 67.02605313109777, "grouping": { "tree": "46c9648a-6e6a-2de2-94ce-5ab00d4e6d5a", "leaf": "7d580944-610f-9b1a-687b-65b6e08e93ef" }, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "BWguom", "severity": "notices", "comparison": "regex", "ruleId": "4a7f4e81-501e-58b7-1f60-853597254f2f", "templateVariable": "u" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "158cb703-0c25-3abe-dfb5-ff8559ac924c", "templateVariable": "HNGFQHNxoCX" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 82253195.17227137, "severity": "warning", "comparison": "string", "ruleId": "ef4e4590-377c-4489-396e-9b4850d45d45", "templateVariable": "IUxvYu" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "8a9362fb-fb41-68fc-4596-2f04da7e191a", "templateVariable": "mxsSD" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "8f41ff91-1b23-57c3-e4bd-ac65b789a523", "templateVariable": "NatEYpY" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "5e6da015-52e6-ac3d-a359-ef9e457b3b17", "templateVariable": "TkEVPHabyUC" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -5980353.54422009, "severity": "warning", "comparison": "regex", "ruleId": "bab17048-ef1c-64fb-6ff6-e976c8a6f3fc", "templateVariable": "kEl" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "yhpk", "severity": "warning", "comparison": "regex", "ruleId": "9717be0d-030b-e83c-4246-0856d2e59bf9", "templateVariable": "SxtmwGxXp" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -93504064.3499471, "severity": "notices", "comparison": "regex", "ruleId": "ad25a1d5-385d-0939-bcee-e78931f797f9", "templateVariable": "qwHhd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "9c81af9b-6a03-ed31-b30a-935ecbdc8f0d", "templateVariable": "RbfgEZ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "PfutlQmZNe", "severity": "error", "comparison": "regex", "ruleId": "87811ead-ece4-2f75-2533-b501883fc7b0", "templateVariable": "aGIfE" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "OtFAQLMu", "severity": "warning", "comparison": "regex", "ruleId": "dfbaa9fa-3d66-c124-715c-49a0c3d6e47d", "templateVariable": "VtzSORZ" } ] } ]
{ "type": "array", "items": { "$ref": "complianceReport" } }