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": "451cd40f-3790-8a60-9a56-fab38f98a1c0", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": 13499060, "score": 43.78844563326469, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "error", "comparison": "regex", "ruleId": "34083240-7125-9a92-c013-7a874047323d", "templateVariable": "jawVI" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": 28520582.600261822, "severity": "error", "comparison": "regex", "ruleId": "2b036b31-7584-88c0-44b1-f0bd4dcf9725", "templateVariable": "swbTDTW" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "DacRlEz", "severity": "error", "comparison": "regex", "ruleId": "ce610894-6e17-8915-54d6-885c62dbd3c9", "templateVariable": "XAG" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 587665.5176617205, "severity": "warning", "comparison": "regex", "ruleId": "77f07a4b-d0f8-e5bd-4d1e-0676057b6df8", "templateVariable": "pucwdk" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "130efba1-951e-17b4-041e-6c468fd77439", "templateVariable": "RguznnUF" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 85056623.04518834, "severity": "error", "comparison": "string", "ruleId": "aca535bb-861c-5fda-c74c-b6bb32ed3e3d", "templateVariable": "G" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 86694998.22804347, "severity": "notices", "comparison": "regex", "ruleId": "4bad7cdb-bfc0-074a-c3cf-a596128f4c32", "templateVariable": "d" } ] }, { "_id": "arista0", "leaf": "57a75fe1-da43-89f8-7fff-0dbc420975a6", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 49221642, "score": 12.417777216308878, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "46d48c73-8dee-66f6-5c9f-04d076ba6824", "templateVariable": "gylUT" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "NI", "severity": "warning", "comparison": "regex", "ruleId": "6e6847b9-1dfa-9edc-5d62-016ece1e8997", "templateVariable": "zQynxExX" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "0a33ca43-53e5-27eb-25b6-97600879e79c", "templateVariable": "kyuVLLxR" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "warning", "comparison": "string", "ruleId": "749bac28-a0db-8c4f-714f-9667c7766946", "templateVariable": "LJG" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "error", "comparison": "string", "ruleId": "48795cc5-445b-5302-1424-5e3526bfaf4d", "templateVariable": "pH" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 81150281.33420372, "severity": "notices", "comparison": "regex", "ruleId": "7b67b786-da55-7ac8-2e35-a4d15f0f87e5", "templateVariable": "iqBuD" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "SFFRJYib", "severity": "error", "comparison": "string", "ruleId": "85cb7950-ae87-577f-af35-cf9967594045", "templateVariable": "yievfOae" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "error", "comparison": "regex", "ruleId": "6e1a3feb-c1bf-bb62-1ae3-8540baa4274b", "templateVariable": "uVnCuxEO" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "yMThmdnza", "severity": "notices", "comparison": "regex", "ruleId": "04d11905-8efb-b7d7-725c-fab8401b97c0", "templateVariable": "G" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "prqABRn", "severity": "error", "comparison": "regex", "ruleId": "69643fdb-386c-50f5-41f1-3a8ad4f9da52", "templateVariable": "TFRNXb" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 23628615.41442105, "severity": "notices", "comparison": "regex", "ruleId": "fd53569e-a6a3-ff23-9612-a4da0e5b8e79", "templateVariable": "bEY" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "GTU", "severity": "warning", "comparison": "regex", "ruleId": "3aab2882-25b8-81c8-ed9c-4787ae33d226", "templateVariable": "XKy" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "54066749-fbb3-323e-e2f5-7e395ccd5e95", "templateVariable": "Ap" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "warning", "comparison": "string", "ruleId": "53d35a0a-791c-93b2-5a8b-0b7cb19ff99b", "templateVariable": "DQguUETRRmv" } ] }, { "_id": "arista0", "leaf": "b9040a6b-f772-7575-76a5-6af46b23c625", "date": "Wed Apr 24 09:56:38 EDT 2019", "rules": -42127405, "score": 53.886842563180856, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "VfMilUPSh", "severity": "error", "comparison": "string", "ruleId": "0037243f-5247-23cf-b69f-de3a6ac12626", "templateVariable": "bRHxBANyy" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 44680621.07395062, "severity": "error", "comparison": "string", "ruleId": "221be322-eeb4-b5e8-ef8c-67da50b87246", "templateVariable": "s" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "warning", "comparison": "regex", "ruleId": "7e4281d9-a778-e4c0-4554-1bc15dde31ca", "templateVariable": "V" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "tNxLTERnt", "severity": "error", "comparison": "regex", "ruleId": "7df35a2a-73ca-1f06-d750-9d7d805722e3", "templateVariable": "F" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "error", "comparison": "regex", "ruleId": "ae2953dc-305f-83d3-4ac4-f590313cfa4c", "templateVariable": "oh" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "notices", "comparison": "string", "ruleId": "632e091f-bfd5-104c-d5ce-bdcea022de39", "templateVariable": "GwrhIBlYm" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "LYNKkqJ", "severity": "warning", "comparison": "string", "ruleId": "f1f421f5-5da7-15eb-b77b-56aaa408e7f2", "templateVariable": "plgMI" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": true, "severity": "error", "comparison": "regex", "ruleId": "73b74e14-4a90-0163-25f4-c78840336b57", "templateVariable": "NyVH" } ] }, { "_id": "ios0", "leaf": "4fc13b42-6d58-14d9-c0e5-02fa027120b8", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": -97769768, "score": 19.248813027427182, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 66882587.988346696, "severity": "warning", "comparison": "string", "ruleId": "21865e75-4d99-bc07-5987-0413abb145d7", "templateVariable": "U" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": false, "severity": "error", "comparison": "regex", "ruleId": "ac82b523-fb68-b2cd-1a27-6559e04b704e", "templateVariable": "XbcePDJQIxF" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 27433067.248113424, "severity": "warning", "comparison": "regex", "ruleId": "cd7cd0f6-5399-319b-85e3-ed64c54a1d50", "templateVariable": "h" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "warning", "comparison": "regex", "ruleId": "aa078d62-cc52-6984-872c-d9be8f4524a9", "templateVariable": "QvWNbRFZ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 21874473.322989643, "severity": "notices", "comparison": "string", "ruleId": "92af5910-265e-9dda-3e09-833a46f82a22", "templateVariable": "cUNWqRDxy" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -94483584.40948339, "severity": "notices", "comparison": "regex", "ruleId": "962337d2-04a5-9a63-2336-85494ae0f7d3", "templateVariable": "sLNnGzcLB" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": -96824775.48308413, "severity": "notices", "comparison": "string", "ruleId": "e031a97e-c498-151d-a9fa-283cb9784267", "templateVariable": "NfsQIZRS" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }