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": "e2b84574-22bd-b788-8cb1-5db087d7b0fb", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": 8482135, "score": 34.52606981714295, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "unWMwINdhG", "severity": "warning", "comparison": "regex", "ruleId": "47545b51-90ec-add9-c4c2-00629d40b087", "templateVariable": "oLKtJW" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "error", "comparison": "regex", "ruleId": "8d5c15fd-afa8-4d92-c694-5ff93265db9e", "templateVariable": "q" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -90900325.87791699, "severity": "warning", "comparison": "string", "ruleId": "80a5acdf-f290-a149-15cc-e0781d7735a8", "templateVariable": "zSSJNtfPU" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "Pld", "severity": "error", "comparison": "string", "ruleId": "884fec3a-96ab-e230-bb93-12bcdb77d1f9", "templateVariable": "hwQGQaw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "75fef674-cc30-02f9-8006-db850780b377", "templateVariable": "lpxtmoXulQ" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "df21a40d-2a64-52b9-4a86-ec748aecde23", "templateVariable": "RKxfJlQT" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "eOYPQyL", "severity": "notices", "comparison": "string", "ruleId": "58534309-21cd-0cfd-fd1b-39bba6569fc3", "templateVariable": "gRuPK" } ] }, { "_id": "junos0", "leaf": "bca61af3-07c1-f0b2-ca2c-f0aa8558219f", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 39638476, "score": 5.371560198396574, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 59125338.421747565, "severity": "notices", "comparison": "string", "ruleId": "5276959c-c409-8115-327c-7ebff8af2022", "templateVariable": "RzM" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "6576b519-c568-e055-05bd-5cfa33ee148a", "templateVariable": "xIgEDLwH" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "8ac1e32c-7fd0-87aa-94f1-a29e8beb7f23", "templateVariable": "eOomv" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "ed", "severity": "notices", "comparison": "regex", "ruleId": "ace052fa-1adc-629b-7ac8-5491ce2c0c4d", "templateVariable": "GhyyYhCWH" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 4037053.1423505843, "severity": "warning", "comparison": "regex", "ruleId": "be36cfd6-3d07-fea3-98e3-bef42e2126da", "templateVariable": "KoxU" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "eVMWLfjcWj", "severity": "error", "comparison": "string", "ruleId": "4b230530-3472-605c-2d8f-5d116aba7383", "templateVariable": "cLNvJW" } ] }, { "_id": "junos0", "leaf": "e42f4eb0-2d39-1940-7a18-6ce3d4f56aee", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": -85342100, "score": 75.32279229194079, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "F", "severity": "notices", "comparison": "string", "ruleId": "062a7fac-6f6a-af17-903e-8fb10453d4de", "templateVariable": "S" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 11905585.723543182, "severity": "notices", "comparison": "regex", "ruleId": "c44362d0-566f-20f3-3269-222858bba43d", "templateVariable": "LzHCY" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "53181f28-c9e4-76d4-bbcc-7f11275b75f6", "templateVariable": "hwqEaEe" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "XZmbmriRykY", "severity": "warning", "comparison": "string", "ruleId": "3b6119b2-b784-c787-9668-6d03c65a7fe7", "templateVariable": "nVHsteG" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "tXHtZKx", "severity": "notices", "comparison": "regex", "ruleId": "22aeeef5-e48a-6bdc-ae70-a4ee2016fac5", "templateVariable": "z" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "89484894-13d8-1603-9c24-131d134c0576", "templateVariable": "pbCpIPLdwaO" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "xa", "severity": "notices", "comparison": "string", "ruleId": "38b9277a-eba3-7d6e-ae10-dca2cbe965ef", "templateVariable": "KivwXh" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 81739281.22385329, "severity": "notices", "comparison": "string", "ruleId": "2b6981e0-b435-8b1c-729b-c7b1feffe313", "templateVariable": "hLPGjekSF" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }