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": "d1143b97-1487-1d71-182f-e403e0898209", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 48306489, "score": 72.62622284380524, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -93056100.23129506, "severity": "notices", "comparison": "regex", "ruleId": "ae0461bd-ad41-f1b1-6f68-192adcd2dd9c", "templateVariable": "bYXIpnx" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 40764162.431672275, "severity": "warning", "comparison": "string", "ruleId": "ca24cf0c-4b7a-2444-9816-8725054f5c40", "templateVariable": "JIleTmT" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 84515138.88482508, "severity": "error", "comparison": "string", "ruleId": "faa45582-658a-d4fb-4868-03dbc522c3dc", "templateVariable": "wkMb" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "qXOvArGl", "severity": "error", "comparison": "regex", "ruleId": "23adff71-3365-ae56-52cf-b3e8b04ee5d4", "templateVariable": "ePaDGL" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "error", "comparison": "regex", "ruleId": "6714a3a9-e1de-040b-b1c0-d39e449d1826", "templateVariable": "TJJ" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "IHgkZzDVV", "severity": "error", "comparison": "string", "ruleId": "436792b5-3070-8252-12e6-b361811cd672", "templateVariable": "UqeTevKbJ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 94261693.98165384, "severity": "warning", "comparison": "string", "ruleId": "cec796a3-7674-cc91-4d59-9fc931c2f64a", "templateVariable": "m" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "warning", "comparison": "string", "ruleId": "290feabf-a538-8c11-9df8-3074713a0a65", "templateVariable": "xazmZlEhr" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 71285067.99501646, "severity": "error", "comparison": "regex", "ruleId": "f7481d7c-8e2c-18e3-1adb-f99b5d80ce2c", "templateVariable": "glvySzC" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -69321697.33512214, "severity": "warning", "comparison": "string", "ruleId": "0792d08c-b5ef-dfd6-bbb5-322e5f18f45b", "templateVariable": "koRiyoFTw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "warning", "comparison": "string", "ruleId": "7b599a4d-90c6-cf15-a8e1-f0227ede6b77", "templateVariable": "LZryJ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "14d36f17-0212-466d-fb5e-7c80af741026", "templateVariable": "TVRGMHZraFd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 47083464.504017204, "severity": "notices", "comparison": "regex", "ruleId": "d2c4949d-431c-2481-0701-ed90fbfb7e41", "templateVariable": "ltuGSGUo" } ] }, { "_id": "ios0", "leaf": "1a6b50a7-7e63-94de-ab0d-aca58d8d4b52", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 98815932, "score": 6.660298583098201, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 67080382.48301607, "severity": "warning", "comparison": "regex", "ruleId": "b9c3fa09-dadb-05b9-e15e-150ffdaca09f", "templateVariable": "rClYE" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "MX", "severity": "warning", "comparison": "string", "ruleId": "fa6e758b-71eb-98df-cc37-d1c4a916be6a", "templateVariable": "T" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "ab2395f6-2344-4532-268b-75a43265d9d7", "templateVariable": "gwZd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "4bd20460-be22-7a9d-4872-a7bfbc405d55", "templateVariable": "uhlBzt" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "WtIs", "severity": "warning", "comparison": "string", "ruleId": "71dac683-3b17-12f5-f8a2-17b4f8db7015", "templateVariable": "d" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "9af73797-3cfc-f4ec-c33c-85bd148d57e5", "templateVariable": "alpxxDKG" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "17ede35b-2fe3-b8dd-653e-1a1742b2bb26", "templateVariable": "eyaSU" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "dyBaeOC", "severity": "warning", "comparison": "string", "ruleId": "e7db5b34-9eae-57d2-597a-6768b01935ee", "templateVariable": "k" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 97619278.96273562, "severity": "error", "comparison": "regex", "ruleId": "e9065f88-b34c-b2d1-2ece-82927bb11a73", "templateVariable": "OdVBbPxlw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "vxTgwU", "severity": "error", "comparison": "regex", "ruleId": "2664115b-6379-eab1-452d-591f9f069ea6", "templateVariable": "iuVQKHMGMUU" } ] }, { "_id": "iosxr0", "leaf": "40566084-1ca2-0f81-dccd-72a8ee8b5158", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 10030565, "score": 90.1012281162012, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": -79661928.09336911, "severity": "error", "comparison": "string", "ruleId": "56417e6b-4381-0bb4-06c7-6a294703c4a3", "templateVariable": "SuCVo" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "error", "comparison": "string", "ruleId": "7224d48f-ac2c-7142-fe94-40bf356e6699", "templateVariable": "psgcXmypJ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 7646195.312972009, "severity": "warning", "comparison": "regex", "ruleId": "e161e217-8f2c-50f0-da8e-0c5c57f40e5f", "templateVariable": "gSepYOqZkn" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -95796722.59033608, "severity": "warning", "comparison": "string", "ruleId": "bc800129-e256-c62f-2f1f-686c307905cb", "templateVariable": "UFPoDOvQhUz" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 7326015.671660498, "severity": "error", "comparison": "string", "ruleId": "585dd7c7-2d3b-bf4f-6a39-776f17835228", "templateVariable": "rygTzhun" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "O", "severity": "notices", "comparison": "string", "ruleId": "e0229679-9577-9f6c-186f-8208b475189e", "templateVariable": "xDNdAiedhGO" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "D", "severity": "notices", "comparison": "regex", "ruleId": "3b234398-3345-462b-1262-6f3ce423d4b4", "templateVariable": "yTX" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": -47128587.86172922, "severity": "warning", "comparison": "regex", "ruleId": "c94d8b33-71f7-8427-fb1a-52f896cbf354", "templateVariable": "IpXguzazuH" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "972df098-fba0-f050-d09e-be197d1e385f", "templateVariable": "Sa" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "m", "severity": "error", "comparison": "regex", "ruleId": "e645e153-7f24-9c61-fce0-d8770fb130bb", "templateVariable": "WXmOiVbtOOd" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "EcafRYjPuP", "severity": "notices", "comparison": "string", "ruleId": "571ae173-19ec-ed8d-e746-dab5903ebb2f", "templateVariable": "M" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 17645183.693620622, "severity": "error", "comparison": "string", "ruleId": "8681e8f5-5743-6720-baa4-aa65d511e9d5", "templateVariable": "YpSwVGXL" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": -41062899.11046077, "severity": "notices", "comparison": "string", "ruleId": "8e28d1b7-8194-046f-2892-f78e51c9a082", "templateVariable": "pZKIefQMaS" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 84734006.68783405, "severity": "error", "comparison": "regex", "ruleId": "7188552d-892c-afec-8e27-2c339abe2dc8", "templateVariable": "QtaG" } ] }, { "_id": "arista0", "leaf": "d808c220-e9cf-4195-305a-2996fd106079", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 61536150, "score": 78.96724098159929, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "c66185c8-1743-0a8d-2476-40f562ff0e63", "templateVariable": "TNnoNMBIQ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "xZtUrFdKTsx", "severity": "notices", "comparison": "string", "ruleId": "96755952-1590-cd0d-da37-e0bc6211e429", "templateVariable": "o" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 8551825.478327796, "severity": "warning", "comparison": "regex", "ruleId": "78344d7f-b641-45a3-8b5a-2f308d8b2b7f", "templateVariable": "kA" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "XbNLYdCZuyh", "severity": "error", "comparison": "string", "ruleId": "c632652e-d80e-9ffd-957e-3f1c2a77789f", "templateVariable": "gqzklztB" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "error", "comparison": "string", "ruleId": "00843870-f757-55b0-94c0-a2cce64f514c", "templateVariable": "cIfWpOQQ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "9ecdf31e-5ff9-9442-0ef7-ddb88f5ceba3", "templateVariable": "gKFnvAuD" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": true, "severity": "notices", "comparison": "regex", "ruleId": "dac15518-7042-5c90-101b-a6413fa87632", "templateVariable": "QfFgRAW" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": -62855785.50366737, "severity": "warning", "comparison": "regex", "ruleId": "2c2bd2d6-4a95-9054-c0ae-ed0c3669f598", "templateVariable": "fnpgVry" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "90db85c2-c67e-9f27-1e7b-f2d1d6403d07", "templateVariable": "DvqX" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "CKctt", "severity": "notices", "comparison": "regex", "ruleId": "f4300ebd-0f51-9cb7-e524-5083ea90b1fa", "templateVariable": "HgFgxvMZSZ" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }