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": "ab472ff5-00e1-d146-8fff-8bf90913a915", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": -51287561, "score": 87.745130298907, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "error", "comparison": "string", "ruleId": "488da459-89fb-d9f3-3bcb-785ba357e583", "templateVariable": "Ye" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "c661a3f4-3e1e-4db7-1e82-5afcf9bac628", "templateVariable": "tdnFWhe" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "error", "comparison": "regex", "ruleId": "9201d533-dff1-028e-eee7-36d51cf30759", "templateVariable": "wqaxaYic" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "7775cf85-5aec-471d-468f-2e7b2841974c", "templateVariable": "zIldwchux" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 84994002.56952146, "severity": "warning", "comparison": "regex", "ruleId": "29c81392-935f-558e-3daf-5737dce88f44", "templateVariable": "OsGDLjt" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 13447758.656403199, "severity": "notices", "comparison": "regex", "ruleId": "aa19b9b8-5e6d-a80b-8cdf-7a52f942f0af", "templateVariable": "STQLyhFOr" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -79295328.20700213, "severity": "error", "comparison": "regex", "ruleId": "4a67dddd-d9a6-6ac0-22d9-362da1e46fef", "templateVariable": "dmn" } ] }, { "_id": "ios0", "leaf": "116fa1ac-cfec-b71e-1ef8-3a9a45f42a2b", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -30153602, "score": 11.382310554061736, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": -83863867.06534004, "severity": "notices", "comparison": "string", "ruleId": "ade4af08-6919-e112-4c70-7f8362600cc5", "templateVariable": "cTlRbH" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "notices", "comparison": "string", "ruleId": "e0d70892-dfe3-7f39-db10-10eca8804aaf", "templateVariable": "uScgp" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "HfCLooBWsK", "severity": "notices", "comparison": "regex", "ruleId": "c86c8a2d-3461-c243-55aa-9862cd2a4a6a", "templateVariable": "gjeb" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "Ui", "severity": "notices", "comparison": "regex", "ruleId": "7c0658ae-0c9f-7bd0-c709-ba36485319db", "templateVariable": "jnJFKzB" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "88f3f3f9-dbea-2152-8f12-036746dd48f9", "templateVariable": "F" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "error", "comparison": "string", "ruleId": "fc9cc3e0-153b-2a9e-5408-24fbb642f087", "templateVariable": "JSdfFrBzywP" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "37e77c8a-44de-c9b6-7898-40d64c38b797", "templateVariable": "ivKNxEYnn" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 99329495.69772872, "severity": "warning", "comparison": "regex", "ruleId": "2bb3f38c-95fb-2b56-db35-ba3e0c113a63", "templateVariable": "QlxIKV" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "c400ac79-3309-afe6-b234-823443845b32", "templateVariable": "fJhszvHy" } ] }, { "_id": "iosxr0", "leaf": "32d728da-b023-0bf9-cff3-b6ad373b43f0", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -45261039, "score": 1.5927136965860011, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "0bbc042a-fa3d-01c5-cb60-2d43f5ff1621", "templateVariable": "QEImC" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 38978382.184334904, "severity": "error", "comparison": "regex", "ruleId": "66fa94a9-2e97-f554-beec-fb4499f65d60", "templateVariable": "EZoYUHAGp" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "c6fdbe78-f970-efee-c7db-c5e3ef4f91a2", "templateVariable": "lGwR" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "error", "comparison": "string", "ruleId": "6296d0bf-dce0-428a-d9c0-7bb4ff86dc86", "templateVariable": "KNtDIQU" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "error", "comparison": "string", "ruleId": "822e2a02-a8bb-0619-ce65-2472adf14c28", "templateVariable": "NBhDK" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "error", "comparison": "string", "ruleId": "e582e8ad-efb4-d914-435a-c21146d81d3d", "templateVariable": "whaoMnCnk" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }