Summary
Get compliance report
Description
Get compliance report for a node on the tree.
Route
GET /golden_config/reports/:key/:value
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
key | string | yes | Report key. |
value | string | yes | Report value. |
null
{ "type": "object", "properties": {}, "required": [], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
data | object | Compliance report. |
[ { "_id": "iosxr0", "leaf": "6b940c9f-a2e1-e0ec-72d0-20218e1e4d75", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": -60640407, "score": 33.15524810231134, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "TUVceRs", "severity": "warning", "comparison": "regex", "ruleId": "12ac5bfd-70a9-4c53-8d46-cf4d7d82240a", "templateVariable": "OvVbNGD" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "yaNw", "severity": "notices", "comparison": "string", "ruleId": "3a078687-8679-8625-f53e-6984236f5571", "templateVariable": "ter" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "pFMdgewAs", "severity": "warning", "comparison": "regex", "ruleId": "3a90d895-da1a-b0d0-5001-c071d4d3848f", "templateVariable": "nnWqa" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "notices", "comparison": "string", "ruleId": "e457d857-ce0a-2fd5-1795-6eb8cdde2aa6", "templateVariable": "C" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "error", "comparison": "string", "ruleId": "1303e3e8-c372-5026-2379-670c7c1954a0", "templateVariable": "GEWDs" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "5fb9f248-3a35-2b5a-bb59-67d3dc1840c3", "templateVariable": "qKG" } ] }, { "_id": "iosxr0", "leaf": "2f74de1e-9020-e202-b2b3-eddd41dd3579", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -16588767, "score": 92.92147663912293, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "error", "comparison": "string", "ruleId": "15f2df71-5a6d-4040-db52-855cb939530f", "templateVariable": "pfsAfXydZsd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 82121342.11145553, "severity": "warning", "comparison": "regex", "ruleId": "c4c9ca4d-b59f-efd8-7f51-61a7b4b3ea0c", "templateVariable": "QfCR" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": -64217141.43584731, "severity": "notices", "comparison": "string", "ruleId": "5e5f264e-dfe2-d285-2f93-da31589669d5", "templateVariable": "cqzok" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": -53516142.35805338, "severity": "notices", "comparison": "string", "ruleId": "17a2d045-5f63-5135-737e-aa38f2942855", "templateVariable": "EiCqk" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -64367544.262037545, "severity": "warning", "comparison": "regex", "ruleId": "24d8e3ca-6a85-12d4-0121-1a21040b9531", "templateVariable": "eHPK" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "pgXu", "severity": "warning", "comparison": "string", "ruleId": "65da5f0a-e6cc-079a-4577-5037ec776680", "templateVariable": "ePaJg" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "j", "severity": "error", "comparison": "string", "ruleId": "be9f25a8-9e2c-7ff3-a57d-720489ebfaa4", "templateVariable": "PVBYeqy" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 60074111.341982305, "severity": "error", "comparison": "regex", "ruleId": "1fc13729-202d-12f6-cc13-f1590f731768", "templateVariable": "ABVedeoEdjX" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "WXZzqa", "severity": "error", "comparison": "regex", "ruleId": "5192fe8b-e7d2-43a9-e039-001ea14d14f0", "templateVariable": "OEw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "jsG", "severity": "warning", "comparison": "regex", "ruleId": "96ddea94-8d4a-2450-c5a7-14adc0a5d6c6", "templateVariable": "vsgevixXm" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 44537124.432020366, "severity": "error", "comparison": "regex", "ruleId": "78d29c84-75e6-8ebf-c1d4-ce599f33ab90", "templateVariable": "AFcliDievCZ" } ] }, { "_id": "iosxr0", "leaf": "c53afa98-3ead-d1c2-7b0c-ab21f71a988c", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": 17762751, "score": 70.16892253520679, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "xbgawgc", "severity": "warning", "comparison": "regex", "ruleId": "1f41843b-a00b-be55-c403-9a5be63f5913", "templateVariable": "ZoBKKn" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "error", "comparison": "regex", "ruleId": "9e4d9aea-3473-7ed1-38c0-6566f4b0fa41", "templateVariable": "AjzrNxQM" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": -81318875.14666945, "severity": "error", "comparison": "regex", "ruleId": "6df2ae2a-0668-fc11-9587-99d665328fdc", "templateVariable": "FYHOZwMeBD" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -9454498.174420938, "severity": "error", "comparison": "string", "ruleId": "f8f7bf21-7818-7f0b-6caa-c3f081fc64df", "templateVariable": "tWjtnUx" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "warning", "comparison": "string", "ruleId": "bb377144-6b9b-3202-0a9a-6ebac6c14f78", "templateVariable": "SRfK" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "error", "comparison": "string", "ruleId": "442772c2-c645-fec3-6428-580fb6b26a90", "templateVariable": "RhNA" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "6a5d4cca-1cc6-7da2-f7e6-2cb547696e37", "templateVariable": "h" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "Y", "severity": "notices", "comparison": "string", "ruleId": "93bd925b-10bf-205c-9321-5dc99433a431", "templateVariable": "rzUQka" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "notices", "comparison": "string", "ruleId": "5002db24-be08-fac9-870f-8d846bd08c68", "templateVariable": "dHNFJSPQy" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "error", "comparison": "string", "ruleId": "4f76b369-0c0f-bc96-543c-f57ed2c0bd8d", "templateVariable": "XyHThLiNlt" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "error", "comparison": "regex", "ruleId": "6eb5b11e-1334-e856-335e-76eccfb6381a", "templateVariable": "eo" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "notices", "comparison": "string", "ruleId": "284088c3-b9aa-3135-8341-d3e9cca76585", "templateVariable": "wJaJexoYMW" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "VUMEUkep", "severity": "warning", "comparison": "regex", "ruleId": "52242f7c-3821-25cb-344a-e8be7a0141f2", "templateVariable": "brsnxvkDL" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }