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": "arista0", "leaf": "381b36fd-596e-553d-1e76-11ff26ebb317", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 26171386, "score": 33.605488997808486, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "jXqOGTCPX", "severity": "error", "comparison": "regex", "ruleId": "1ed8c997-5e65-5c5d-521b-d9ffa99fba13", "templateVariable": "uYCIZcIDP" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 55143183.10474554, "severity": "error", "comparison": "string", "ruleId": "578b3ea9-ec09-9f84-1232-ca17ab302fe2", "templateVariable": "ZskHTZHQ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "ulGs", "severity": "notices", "comparison": "regex", "ruleId": "ed2cf3ca-2eff-ce7b-f58d-67115c991d6d", "templateVariable": "zu" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": -68741897.8326221, "severity": "warning", "comparison": "string", "ruleId": "f35a7fff-1e5f-4b69-a585-6abdcadfc5d6", "templateVariable": "NV" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 37206301.29908997, "severity": "notices", "comparison": "string", "ruleId": "e0761bad-cd3d-61a7-dcd2-8fb3a2ab74d8", "templateVariable": "kurfpS" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "780bfc47-d37c-0261-eb7e-e578e560a6bb", "templateVariable": "pFpE" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "GnzEimRa", "severity": "notices", "comparison": "regex", "ruleId": "808681df-064f-26a7-e5b2-7988ec7fb124", "templateVariable": "NubIDlki" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "error", "comparison": "regex", "ruleId": "3e45f1fe-d7b2-d63a-b6b3-a030dfdc96a4", "templateVariable": "ZHdmFDlan" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "9e807ca7-8d00-90c7-df65-3a5cc2b818e2", "templateVariable": "ENaxwfqF" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 31481347.772022873, "severity": "notices", "comparison": "string", "ruleId": "1c3608a8-54d6-5af2-97d2-b8e9a482198c", "templateVariable": "TH" } ] }, { "_id": "junos0", "leaf": "52d0093b-de7d-cdaf-cc29-1f8158eeccde", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -49425201, "score": 41.997329952809025, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "Aht", "severity": "notices", "comparison": "regex", "ruleId": "ae0d773c-88ae-ab4a-a3a1-c7a907af57a7", "templateVariable": "wAVxF" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "MThHf", "severity": "error", "comparison": "string", "ruleId": "286ae09d-95e8-28fd-e74b-fd8789005a61", "templateVariable": "qt" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -96158440.63801613, "severity": "notices", "comparison": "string", "ruleId": "73982f0b-3842-f771-dc3d-967dca1045fe", "templateVariable": "Ivv" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "error", "comparison": "string", "ruleId": "ad46e084-4485-3bd4-aebd-34956031ce8c", "templateVariable": "KvVnO" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 43760072.12109169, "severity": "warning", "comparison": "string", "ruleId": "3b52dc3f-e728-6dac-d812-25ee27efa17b", "templateVariable": "ykxjKftHrH" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": -28315512.275311947, "severity": "error", "comparison": "regex", "ruleId": "8ab70239-4a4f-c3a6-5ae7-e907dae43919", "templateVariable": "UGgqi" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "sRy", "severity": "warning", "comparison": "regex", "ruleId": "cdf0e0b8-81dd-9480-d3e5-554a8fda57f2", "templateVariable": "WXNm" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "iebKce", "severity": "warning", "comparison": "string", "ruleId": "f989726e-ee11-300d-963d-0c20c507a420", "templateVariable": "YoPhFV" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 9391801.502790734, "severity": "warning", "comparison": "regex", "ruleId": "d79eee81-8da7-72e9-4b8f-918ed71ff6b6", "templateVariable": "ClX" } ] }, { "_id": "arista0", "leaf": "126fd971-ded6-28a2-0b2d-885710e0eff2", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": -8088562, "score": 11.667480135008223, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "error", "comparison": "string", "ruleId": "24406ff7-2fa0-4700-8212-746a1a2429ff", "templateVariable": "QxpxhlQ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": -22749322.98906465, "severity": "error", "comparison": "string", "ruleId": "29ec6101-a5e2-7d4f-81e5-3926d2041366", "templateVariable": "DMcK" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "notices", "comparison": "string", "ruleId": "8d2be171-c97f-42f0-62f5-e75d4cd3be44", "templateVariable": "p" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 63124262.07339007, "severity": "warning", "comparison": "regex", "ruleId": "362fea66-5fdd-4d85-7b20-267fcf5ac372", "templateVariable": "JNuRf" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "qZljDXxHBZJ", "severity": "notices", "comparison": "string", "ruleId": "55054a8f-d996-1ce3-9d53-795d1a7b9871", "templateVariable": "KQC" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "YQ", "severity": "warning", "comparison": "regex", "ruleId": "7bb69642-1044-657f-5824-3fa56aa3edc7", "templateVariable": "OiFYORg" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "error", "comparison": "string", "ruleId": "f9e2ad5b-b87f-1caa-a570-a4d5a353d857", "templateVariable": "I" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "error", "comparison": "regex", "ruleId": "9e23df3a-ee49-110f-4567-4d394450cfe9", "templateVariable": "aTxYEHUgi" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 50150716.682984084, "severity": "notices", "comparison": "regex", "ruleId": "ff1b6ad0-2a26-9ac8-315e-b35b0a0bf1bd", "templateVariable": "yZnQejdm" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "LmbqWCywVxi", "severity": "warning", "comparison": "string", "ruleId": "66210951-2625-baec-07d4-b1e37c570d88", "templateVariable": "afotJNGzm" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "error", "comparison": "string", "ruleId": "e321d86b-4c02-3f0e-7fe1-1d00ee8b8d20", "templateVariable": "nMijOaLFS" } ] }, { "_id": "ios0", "leaf": "5e347223-a7aa-cab7-2c02-905764616d84", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -28873890, "score": 89.83204937589679, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -26412334.297002316, "severity": "error", "comparison": "string", "ruleId": "7630f238-c728-5eb8-5383-e6a0cf5870aa", "templateVariable": "PMbOlYmOQC" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "uqloNgB", "severity": "error", "comparison": "regex", "ruleId": "531fc135-32a1-615a-a13e-e7eb7af73cbc", "templateVariable": "xkXtavgxxFY" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 65225607.12107554, "severity": "warning", "comparison": "regex", "ruleId": "93a20ecc-cc1a-e79d-05dd-81a8b143d742", "templateVariable": "CVws" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "notices", "comparison": "string", "ruleId": "d2661c1c-279a-4209-99b8-9808080fc39b", "templateVariable": "DtgG" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 94905548.7549158, "severity": "error", "comparison": "string", "ruleId": "7743c92e-9413-f56e-d4e8-b1e70f359097", "templateVariable": "czguWw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 31407795.29380642, "severity": "error", "comparison": "regex", "ruleId": "ebe0c85c-fe36-66ef-3c47-b2a7c3effcce", "templateVariable": "MYdLqv" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "b77e9272-12df-808f-4798-d827618d8957", "templateVariable": "a" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "notices", "comparison": "string", "ruleId": "2bd42e3f-6fcc-6feb-2d43-e4c5c3426675", "templateVariable": "tALjKz" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "I", "severity": "warning", "comparison": "string", "ruleId": "18c45e51-ec2a-533d-36cf-6a6c99381f22", "templateVariable": "mm" } ] }, { "_id": "iosxr0", "leaf": "0c472945-4cbc-3138-f799-a0fff94b42af", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": 80003071, "score": 98.31672737132597, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 63108894.15476164, "severity": "error", "comparison": "string", "ruleId": "0c259fe2-47d1-0dc6-2b31-f8f0898f68b8", "templateVariable": "Vp" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "102ced82-9bbe-02b9-54a3-04a255a6e6f2", "templateVariable": "EbPPLSXzz" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -26932735.711130545, "severity": "warning", "comparison": "regex", "ruleId": "40fcf53d-9f5d-3a79-c2bd-73c48594676a", "templateVariable": "EiBaTP" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -93792475.52123746, "severity": "warning", "comparison": "regex", "ruleId": "84ebc428-d5dc-ffdc-ed97-7e6dcd9eb9bd", "templateVariable": "rhEco" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "ofVPRROuhJx", "severity": "notices", "comparison": "string", "ruleId": "6eb27dd3-eed7-0278-c365-2acaf36211d7", "templateVariable": "djwSpZd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "error", "comparison": "string", "ruleId": "3891723b-f2b0-556f-4b5f-a90366e006ae", "templateVariable": "kl" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "sDU", "severity": "notices", "comparison": "string", "ruleId": "84849382-3683-6410-55a1-ccb056a30b76", "templateVariable": "gF" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "warning", "comparison": "string", "ruleId": "f772b94c-3611-e94c-a821-b54211d5b645", "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": "c5fc26ca-c71d-e0f9-7a66-149430567547", "templateVariable": "hndjTlGZs" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "bqbvwc", "severity": "notices", "comparison": "string", "ruleId": "6cdc2c69-0734-e5fa-3556-74ded60d5751", "templateVariable": "lWCkYtAS" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "12a54993-a740-e6f7-64b6-8891d3354bd3", "templateVariable": "rdiQeToRdH" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "CKZxXGpnn", "severity": "warning", "comparison": "regex", "ruleId": "90a6c776-aa1d-43a4-4c62-f76dad6b4f9d", "templateVariable": "kIMUIontqg" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }