Summary
Get list of reports
Description
Return a list of compliance reports.
Route
GET /golden_config/gc/compliance/reports
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
This method has no parameters |
Copied to Clipboard
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
data |
array |
List of all the compliance reports. |
Copied to Clipboard
[
{
"_id": "a83c015f-5733-3f76-7b3b-289e8e722e56",
"reportId": "902a7f96-32e4-e625-54ae-4afab96bba4d",
"device": "iosxr0",
"date": "Fri Apr 26 09:56:38 EDT 2019",
"ruleCount": 21556970,
"score": 38.949953554915616,
"grouping": {
"tree": "5f0e7ab7-d73d-c4ce-edea-50b86beecb60",
"leaf": "40da7431-edff-4db0-f280-526dc0f53855"
},
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": "AW",
"severity": "warning",
"comparison": "regex",
"ruleId": "52bbc779-c737-bcb3-75a5-9bf3b2b38df7",
"templateVariable": "pYEXHK"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": 11864786.922139809,
"severity": "warning",
"comparison": "regex",
"ruleId": "962b47ca-0209-d852-3d26-e34cba4993e0",
"templateVariable": "P"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": "Xm",
"severity": "error",
"comparison": "regex",
"ruleId": "edb7671b-bfb3-1a70-dd98-8056b20585ae",
"templateVariable": "WEzwoKWCy"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "RwGYFb",
"severity": "warning",
"comparison": "string",
"ruleId": "33e55f8a-56ff-7dee-376e-f62759ba9697",
"templateVariable": "s"
}
],
"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": "6f4eb978-5de5-a17d-1cce-652ff0846a5a",
"templateVariable": "IRasOCS"
}
]
}
]