Get latest compliance report for all devices on a tree.
Copied to Clipboard
[
{
"_id": "junos0",
"leaf": "b533207c-082c-14d4-691f-668b55384cc8",
"date": "Wed Apr 24 09:56:38 EDT 2019",
"rules": -70263951,
"score": 7.655522163162631,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": false,
"severity": "error",
"comparison": "regex",
"ruleId": "4cfe9333-f284-e906-a46f-00db5edb7b72",
"templateVariable": "nIpTLVva"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": false,
"severity": "warning",
"comparison": "string",
"ruleId": "d0be1977-b176-538c-d05d-a8687f29c18c",
"templateVariable": "YERbpMxR"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": -80462824.89818366,
"severity": "error",
"comparison": "string",
"ruleId": "55f47d5e-c5af-c81d-32f6-331d0c0d2711",
"templateVariable": "tHFskaTjU"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": true,
"severity": "warning",
"comparison": "regex",
"ruleId": "b0d92ff4-9a9a-b405-225d-ee587df9de45",
"templateVariable": "CXhVZFWlD"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": "c",
"severity": "warning",
"comparison": "regex",
"ruleId": "a8724c0a-be73-da0f-ee38-42f646661372",
"templateVariable": "joJC"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": 47475671.9618378,
"severity": "notices",
"comparison": "string",
"ruleId": "6a7bef37-b390-7adc-6a92-8cbf933832fc",
"templateVariable": "exAFjpAbPA"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": "Fe",
"severity": "notices",
"comparison": "string",
"ruleId": "34396e7a-80f3-3c95-ba6c-528759f27dfb",
"templateVariable": "KNqZjBFOH"
}
]
},
{
"_id": "iosxr0",
"leaf": "77aa3a7a-e06a-b4a5-7756-3f7d3d67e48f",
"date": "Thu Apr 25 09:56:38 EDT 2019",
"rules": -13601782,
"score": 50.235288550351264,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": true,
"severity": "notices",
"comparison": "regex",
"ruleId": "a8837242-62c2-1574-e45b-50af16c1ac3d",
"templateVariable": "em"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "UmNIzLOueQS",
"severity": "error",
"comparison": "string",
"ruleId": "e79380db-6099-960f-2d5a-324e5ce94879",
"templateVariable": "zSu"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": 88975277.21008566,
"severity": "notices",
"comparison": "regex",
"ruleId": "03d8c375-23b4-4675-e9c2-1b40c8a376ef",
"templateVariable": "MJa"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": false,
"severity": "error",
"comparison": "regex",
"ruleId": "72a47f17-082b-0b30-523d-e609ae52e07b",
"templateVariable": "VuDPYn"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": 83188707.24263135,
"severity": "notices",
"comparison": "string",
"ruleId": "00e67da4-3360-5e81-ca15-83a37bda904a",
"templateVariable": "nHFennNnR"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "O",
"severity": "warning",
"comparison": "string",
"ruleId": "b8ce9738-d3c9-bb77-cfa5-1f38a0980379",
"templateVariable": "FblHUDOroNo"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "VJTBxfzmC",
"severity": "error",
"comparison": "string",
"ruleId": "c87e06a5-d6c3-c800-7dc2-9c891c742c26",
"templateVariable": "KyM"
}
]
}
]