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": "91347990-f4fd-bf35-6df2-c1815be8ba03",
"reportId": "a9f41acd-c242-4d95-7c9d-e8c66d081938",
"device": "ios0",
"date": "Wed Apr 24 09:56:38 EDT 2019",
"ruleCount": -70556168,
"score": 66.94150542324324,
"grouping": {
"tree": "d06c3faa-7837-b4ab-a832-f04883ae5b8e",
"leaf": "43e9954e-77ed-6787-2270-724bd11165a5"
},
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": true,
"severity": "error",
"comparison": "string",
"ruleId": "adb3e12a-d4a3-293f-7d42-fb38372fdc57",
"templateVariable": "xlJXCCfRk"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": -98092305.60374856,
"severity": "error",
"comparison": "string",
"ruleId": "8fdaac91-bd4f-3ec6-eeb0-a469c93ecf9f",
"templateVariable": "QmUTmTj"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": -96806678.30943497,
"severity": "notices",
"comparison": "regex",
"ruleId": "429c2ee8-a26a-4ed8-df0e-9184787d5ea2",
"templateVariable": "jjDxMnfyCJR"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": false,
"severity": "notices",
"comparison": "regex",
"ruleId": "b4e77039-e606-c61a-cf86-61802ca01350",
"templateVariable": "ySwjfsMUerl"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": "xwVf",
"severity": "warning",
"comparison": "string",
"ruleId": "88aa655e-d2c8-876c-73a9-fbddcae91881",
"templateVariable": "dfQqmACJRvU"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": 45295091.89060062,
"severity": "error",
"comparison": "string",
"ruleId": "a8d5f8fb-d0d5-c2eb-9c27-b2b73b070d72",
"templateVariable": "HvnCuquB"
}
]
}
]