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": "junos0", "leaf": "f06b81db-e349-c36d-4fe3-aa481ea2ba8e", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 66693561, "score": 49.06071181709537, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "FQcPJKMbxNm", "severity": "notices", "comparison": "regex", "ruleId": "1a5261eb-fa78-69e4-8099-4cf93c558ba9", "templateVariable": "XIL" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "37e35d8a-6d7e-b70d-9f0d-d16d0d8be58e", "templateVariable": "xr" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "fd80dead-0683-04d6-47c2-232b38dbebcd", "templateVariable": "OQuvIclkTa" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "error", "comparison": "string", "ruleId": "dc3f56e2-7de2-472f-8efc-36ba1f16cdfd", "templateVariable": "IfLtJkiO" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": -44681103.85177879, "severity": "notices", "comparison": "string", "ruleId": "3130a528-b751-9828-dcb1-8400a8c39b6e", "templateVariable": "iFwDhqfhELT" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "error", "comparison": "string", "ruleId": "4b7b1df9-c0f2-421b-7c73-7ae0b1dded74", "templateVariable": "nwikxskEe" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 88187723.06198174, "severity": "notices", "comparison": "string", "ruleId": "ae3bc914-af9e-c4ab-5c3f-939fc3a9f5c4", "templateVariable": "ExnwhSxa" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "nu", "severity": "warning", "comparison": "regex", "ruleId": "6a5f21df-7ad9-df64-1a0a-e6cde2382c08", "templateVariable": "IlRqoGfGZTp" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "90e098d0-8f8b-c5e2-a1b6-cff0dff8e5ed", "templateVariable": "M" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "error", "comparison": "string", "ruleId": "6e4317d9-936a-559f-aaab-df08df6ca318", "templateVariable": "lJQwptXffs" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 37783248.22261676, "severity": "error", "comparison": "regex", "ruleId": "785c09f7-4305-11c5-cabd-9a717cb44d1e", "templateVariable": "y" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -54895994.13872428, "severity": "error", "comparison": "string", "ruleId": "2f9ee75b-0846-690b-87e1-52b41285982b", "templateVariable": "I" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -84554849.08148621, "severity": "error", "comparison": "string", "ruleId": "0842c275-4fd8-f49a-df5a-28bb94b17ad2", "templateVariable": "yctZuwjXJm" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "DgEjyPXHlne", "severity": "warning", "comparison": "regex", "ruleId": "09f40c34-0932-80dd-f68e-19cf261a72fa", "templateVariable": "HnvSGXJ" } ] }, { "_id": "ios0", "leaf": "f6f42d9a-45e8-f25f-ed97-e8d9f6136c04", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 58166014, "score": 99.81602002636554, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "28132117-819f-7bfa-b5b1-4508d553a1c4", "templateVariable": "Ozsn" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "error", "comparison": "string", "ruleId": "d82dec6b-90b0-c6fb-9fa0-abd861a0b1bb", "templateVariable": "KzG" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "9057d621-378a-4587-d070-9a61ae02d8be", "templateVariable": "HpaUUQGStY" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 12037602.475698963, "severity": "error", "comparison": "regex", "ruleId": "dfaad64c-138a-5e84-e4ee-4ce83f9758b1", "templateVariable": "tsmdDvWfpqt" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 19312929.557430133, "severity": "error", "comparison": "string", "ruleId": "1e4edc82-7cba-fc13-d45e-705ab04edac5", "templateVariable": "lEzmDoqkP" } ] }, { "_id": "ios0", "leaf": "ae65c54d-f6ed-f231-e99e-900c3b56da86", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -23423147, "score": 46.579436785103546, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "oxp", "severity": "notices", "comparison": "string", "ruleId": "b2a85914-42e1-7d13-9204-55842fb9c6dc", "templateVariable": "gGfCbaq" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "y", "severity": "error", "comparison": "string", "ruleId": "4b667108-b4a5-09a8-8f7f-35ed2f13a27f", "templateVariable": "tDntMNfJQr" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 98267474.81832206, "severity": "warning", "comparison": "regex", "ruleId": "d4a8f8fe-ad80-6a7f-5cb2-2671a2b6e766", "templateVariable": "plxqMkHw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "error", "comparison": "regex", "ruleId": "a0bba224-60c5-49ed-4d15-bba56891a0b0", "templateVariable": "AqmMYYmn" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "notices", "comparison": "string", "ruleId": "f6507b92-33b0-4cc8-da08-49628feb73e5", "templateVariable": "JQCGp" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 70664990.23748639, "severity": "notices", "comparison": "regex", "ruleId": "ff146ae4-07af-52fc-4447-60ece82a954f", "templateVariable": "jfozHG" } ] }, { "_id": "ios0", "leaf": "4113baff-3935-b7f0-496c-484002c05c70", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -78867671, "score": 18.70794091867878, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -45630150.86777424, "severity": "notices", "comparison": "regex", "ruleId": "fb862490-dc57-a9b7-f389-0c0597bed168", "templateVariable": "ZGOwzV" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "error", "comparison": "string", "ruleId": "d63b11a0-abda-c15c-b12a-cb64824ca7ae", "templateVariable": "SIbLnALx" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "ndFvUVfzbsE", "severity": "warning", "comparison": "regex", "ruleId": "2c74577c-3a7f-4356-aa6e-68714b65a978", "templateVariable": "AfG" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "33b286ec-e7a9-8e33-6e2d-b5fede1f43ad", "templateVariable": "hgmqSAXeyp" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": -76931896.67016047, "severity": "notices", "comparison": "string", "ruleId": "b9d71994-5f1a-bae0-30e9-b66360b1759b", "templateVariable": "H" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "VnXGp", "severity": "notices", "comparison": "regex", "ruleId": "bb2e8809-113d-d0bd-c07d-1a0f149dd693", "templateVariable": "ZpFKJdn" } ] }, { "_id": "ios0", "leaf": "f7e84c7d-61ac-1b69-60f2-bdf6946faa7a", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 48955610, "score": 18.530297959540842, "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": "13fff41c-2a1e-b3d2-e640-99f2da55f0f2", "templateVariable": "S" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "warning", "comparison": "string", "ruleId": "d45c1b9c-2b10-be17-5355-87f79690ed9f", "templateVariable": "EbVNNzcFc" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "TYaVaLGMoUI", "severity": "error", "comparison": "regex", "ruleId": "119281f2-b429-cf60-06d9-4334366aa7bc", "templateVariable": "jFfvMuAkjO" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "sZ", "severity": "notices", "comparison": "string", "ruleId": "4650a6de-e47c-4335-8587-3ac5d6695bd5", "templateVariable": "wya" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "e84bcc8f-71d7-377f-8109-fe84909ededd", "templateVariable": "aLj" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "f0e05ec1-8a02-93e2-5ea2-2f867e005173", "templateVariable": "cAOyaV" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "error", "comparison": "string", "ruleId": "3563a893-c520-a0d9-b1c2-3bf62099ab62", "templateVariable": "leggtPycsg" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "03dbd58d-99c3-d754-e890-a07001c1c07c", "templateVariable": "Y" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 74887523.5635392, "severity": "error", "comparison": "regex", "ruleId": "1306d849-a308-bc10-0dc2-bce5d3e336f0", "templateVariable": "o" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "ZezKWyYpMC", "severity": "notices", "comparison": "regex", "ruleId": "b6af07ee-c973-8940-4cdd-bcc4e5bdd6b4", "templateVariable": "HPauZ" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }