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": "d5b52957-031f-ff5e-8c49-7ae10cdee9a1", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 61464084, "score": 85.7741399446233, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "error", "comparison": "string", "ruleId": "f9b33653-1f37-8851-1f20-d9b7ca055533", "templateVariable": "dVCbXB" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -84925606.295046, "severity": "warning", "comparison": "string", "ruleId": "a97aedf3-a58d-586f-27e8-c50d35596173", "templateVariable": "xn" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "75bed2ac-cdae-a6d4-c303-2ef4923a2251", "templateVariable": "b" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "g", "severity": "warning", "comparison": "string", "ruleId": "acd56b21-5e1c-b96e-c4e7-88462baff4c4", "templateVariable": "llcFkwRF" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "8e697562-20a8-3ba4-ce5c-e4d9dca230e2", "templateVariable": "CyBkbJGuxC" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "error", "comparison": "regex", "ruleId": "4d42b50a-c2a5-e7ae-3449-b5e828258c36", "templateVariable": "Vz" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "QhyI", "severity": "error", "comparison": "string", "ruleId": "d59a1fbe-ca83-4f07-9765-1cae5bdf6a28", "templateVariable": "gS" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 12551723.811436772, "severity": "error", "comparison": "regex", "ruleId": "16f35098-f341-32e3-8e96-0aeef142e019", "templateVariable": "andBl" } ] }, { "_id": "junos0", "leaf": "5603a752-b6c7-8d1e-3776-5df5561e6b2b", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 88392601, "score": 5.815408618547879, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": -46253797.64904838, "severity": "warning", "comparison": "regex", "ruleId": "32468dab-8684-6de0-4c52-934300ab4972", "templateVariable": "xzXzmd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "580e1cad-462d-999b-5fa6-8585be87fef9", "templateVariable": "Bqz" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "c90f1e4c-210e-a107-814a-17844a5f5235", "templateVariable": "KVWrN" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "DoMBoXfGh", "severity": "notices", "comparison": "regex", "ruleId": "32f71071-419f-32e0-49a4-5dad4800d6e3", "templateVariable": "fCb" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "error", "comparison": "string", "ruleId": "b5667f3e-6b3c-9e98-0255-51a4b4ae13c6", "templateVariable": "CQH" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -57536300.3337976, "severity": "error", "comparison": "regex", "ruleId": "72898212-e035-7b58-b95d-900b80dbbe25", "templateVariable": "RH" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "5067c795-015e-d9e6-db04-e8e181a46f73", "templateVariable": "KlsfvzLPsH" } ] }, { "_id": "ios0", "leaf": "2addcca4-9ceb-88b6-1c68-ed695c5919c8", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": -78677477, "score": 19.624281634150687, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "warning", "comparison": "string", "ruleId": "a516815a-7f70-7f23-a285-cafef76f8341", "templateVariable": "IXOgCht" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 73243263.41016659, "severity": "notices", "comparison": "string", "ruleId": "e1885748-53b0-79db-4a8b-e1c1009545a6", "templateVariable": "lkyOO" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "RLDtOO", "severity": "error", "comparison": "regex", "ruleId": "6693ba23-374c-36d1-67e8-1f3c8c1131c6", "templateVariable": "spxodmJ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "IVAJGwxOC", "severity": "notices", "comparison": "string", "ruleId": "7775ed26-7870-285a-3503-2e58bb62b369", "templateVariable": "gLJJb" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "74aaa5c4-693d-3190-22af-aff6d2002a98", "templateVariable": "wkrFUx" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "WaDysA", "severity": "warning", "comparison": "regex", "ruleId": "9b213b1f-9086-73cb-ac66-65859663fcbd", "templateVariable": "L" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "notices", "comparison": "string", "ruleId": "7658abd4-e395-24b1-f1b4-ad8afe6bca18", "templateVariable": "WRbLQFsLUwj" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }