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": "ios0", "leaf": "3bb5c472-6aa9-1311-8510-a2628d06ca52", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 14919746, "score": 60.259238171779806, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "b", "severity": "notices", "comparison": "string", "ruleId": "968cafc2-804e-480e-b984-4a72ad011783", "templateVariable": "SLDWKUZSa" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 81304047.70318395, "severity": "error", "comparison": "regex", "ruleId": "8c6f89e5-74ab-82df-fa80-06047b8a92d4", "templateVariable": "uGLu" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": -34919685.41974186, "severity": "warning", "comparison": "string", "ruleId": "40ac2aee-48ad-9e21-178d-0f7103acb014", "templateVariable": "VRF" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 48404705.29065767, "severity": "notices", "comparison": "regex", "ruleId": "04492053-fc01-784e-9d2e-a40e5c150e9a", "templateVariable": "XDmpiLzMouG" } ] }, { "_id": "junos0", "leaf": "19268d81-c42b-bd62-6b65-c73d2ac34ecd", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 41360649, "score": 19.032260197225725, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "822c5582-4a4b-a132-95f8-8e55a68d78ea", "templateVariable": "gzlMb" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "0a35c430-e594-6b5f-b388-5ef29a20f8e6", "templateVariable": "j" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 77087536.78528702, "severity": "notices", "comparison": "regex", "ruleId": "39fa34b1-235c-6852-8ab6-dd11b8274ee9", "templateVariable": "MMKsewoHG" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "error", "comparison": "regex", "ruleId": "176f2adf-0e7c-6b56-6e86-e7f64bc36f86", "templateVariable": "leZphK" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "warning", "comparison": "string", "ruleId": "4e6c983a-02ae-7122-c50d-32ba5fb489cf", "templateVariable": "CurqIXi" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 12062108.43016681, "severity": "notices", "comparison": "regex", "ruleId": "f426925a-9ff6-0c22-b5d0-a6f8a726ab5f", "templateVariable": "wbtMIvdGI" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "GMOSJaHK", "severity": "notices", "comparison": "regex", "ruleId": "14e1ad62-e2e5-5dfe-1777-fcf95be2e0b4", "templateVariable": "eaQTHUacRGS" } ] }, { "_id": "junos0", "leaf": "96b2d7d7-d9ff-9504-40f2-5bc9bdcee6c9", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": -15229581, "score": 59.763179219635454, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 96130211.90226579, "severity": "notices", "comparison": "string", "ruleId": "bc3c4874-beb3-d6d7-5415-a5fca58f2f01", "templateVariable": "mtG" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "7a3170ca-c9f8-8bdc-0e1f-53ea184b9d17", "templateVariable": "PTkEodAGuXT" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "error", "comparison": "regex", "ruleId": "6456ed3b-b559-d51b-9dd6-9615fbc770c9", "templateVariable": "MIhBSzuQT" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "wctUgm", "severity": "notices", "comparison": "string", "ruleId": "dfee0758-0600-1709-349d-652475c8e91a", "templateVariable": "zeKW" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "error", "comparison": "regex", "ruleId": "4218b41e-f9ee-ae8a-52e0-d96a6c8cb630", "templateVariable": "yw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": -67750885.92347682, "severity": "warning", "comparison": "string", "ruleId": "d88d874b-f22e-5fd6-0cb2-dace05d9fe94", "templateVariable": "NUyRDR" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "PsIq", "severity": "error", "comparison": "string", "ruleId": "a90e65ab-00f1-1a49-38d0-71f8c4e4c0c2", "templateVariable": "n" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "Dk", "severity": "error", "comparison": "string", "ruleId": "41382d4d-5077-e36f-a591-07e276364c84", "templateVariable": "i" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": -31429025.617622793, "severity": "warning", "comparison": "string", "ruleId": "459e1751-9f17-4747-2825-f67576b82ecb", "templateVariable": "oovVjb" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "9ab9683b-8cdb-89d7-51ed-5318ade96e94", "templateVariable": "KFWrEvR" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "PfkqdaX", "severity": "warning", "comparison": "string", "ruleId": "3827b549-4703-abfd-09f1-349aec352e32", "templateVariable": "vtyWL" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "V", "severity": "notices", "comparison": "regex", "ruleId": "fa365423-9f45-48b7-195b-72520ddbabc7", "templateVariable": "OqFhtLSXoFc" } ] }, { "_id": "iosxr0", "leaf": "1ba1390b-507d-b785-103a-2394371164d8", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 10411984, "score": 9.123470901551656, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "UoajjWa", "severity": "error", "comparison": "string", "ruleId": "3b7bd134-50d3-d153-2e73-cd1c7dd775bb", "templateVariable": "oKyh" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "LSiGQHlqKSb", "severity": "warning", "comparison": "regex", "ruleId": "23ba348b-3df7-7aa2-8b3e-ddd8582f8a3c", "templateVariable": "Wf" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 38990234.0909785, "severity": "error", "comparison": "string", "ruleId": "2ec814ea-28fe-9477-30cf-b8ddc5ce7b40", "templateVariable": "X" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "Qt", "severity": "warning", "comparison": "string", "ruleId": "9f90b94a-e33b-6d3e-994b-6629c5523618", "templateVariable": "y" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "5f2d00bd-5c3c-9dcc-fd85-b7e749b6f63e", "templateVariable": "NobJ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "jNTRQsIsXp", "severity": "error", "comparison": "string", "ruleId": "41457be1-fad7-0212-190d-72ec727de3ec", "templateVariable": "DHv" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "uULSUgWjAV", "severity": "error", "comparison": "string", "ruleId": "872242cc-0523-9989-42f1-9532d913b2db", "templateVariable": "SkviIik" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 45898515.463366866, "severity": "notices", "comparison": "string", "ruleId": "c4be2942-b729-c7bc-6ead-c3908a27277a", "templateVariable": "zxMOw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "arWkDLrmH", "severity": "error", "comparison": "string", "ruleId": "22f4c70a-86bc-a942-fa41-b827a39b1592", "templateVariable": "td" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 79010581.44060302, "severity": "notices", "comparison": "string", "ruleId": "25eb79b4-f898-f354-2dc9-82b9b793fd74", "templateVariable": "nZwooaAWJf" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }