Get compliance report for a node on the tree.
Copied to Clipboard
[
{
"_id": "iosxr0",
"leaf": "867f1628-8658-8b43-b7c2-1c6c8084b55d",
"date": "Fri Apr 26 09:56:38 EDT 2019",
"rules": -42583064,
"score": 1.5783995788522853,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": true,
"severity": "notices",
"comparison": "regex",
"ruleId": "85d8c2ea-530b-62d4-7a00-a7eca589b077",
"templateVariable": "cqgm"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": true,
"severity": "error",
"comparison": "string",
"ruleId": "82f0e031-106d-ab20-5790-1d5b1b1e2c72",
"templateVariable": "LAUbADKx"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": 81360452.34180686,
"severity": "error",
"comparison": "regex",
"ruleId": "2baaef56-1427-c4e7-4cf4-626bc485bf27",
"templateVariable": "MxFUZj"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": -95924203.6275818,
"severity": "notices",
"comparison": "regex",
"ruleId": "3acf3dfd-1f5c-80c1-3625-48cc18546d74",
"templateVariable": "bKgeAGEU"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": false,
"severity": "notices",
"comparison": "regex",
"ruleId": "f088330b-2d3e-4a8d-7b5c-df2239963ba2",
"templateVariable": "nwIJvaIk"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": false,
"severity": "warning",
"comparison": "string",
"ruleId": "a4d1ac6f-648b-a914-9e16-a2ec6042cdae",
"templateVariable": "i"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": -97787243.48356006,
"severity": "notices",
"comparison": "regex",
"ruleId": "b4a2e37c-4e23-1a89-eb32-a1ac7d54732e",
"templateVariable": "ZuVEePx"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": false,
"severity": "error",
"comparison": "string",
"ruleId": "17b7d302-c1be-902c-8728-bb74d2f48b4b",
"templateVariable": "jMrgYSyp"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": "cFCJjON",
"severity": "error",
"comparison": "regex",
"ruleId": "a7328631-127e-dab4-0d9f-df6f34530081",
"templateVariable": "hWHqByZzOuB"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": "M",
"severity": "error",
"comparison": "regex",
"ruleId": "c80fec96-dae0-a133-af11-2b6776d4f903",
"templateVariable": "cjozPsgM"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": "BQmVwzeuHx",
"severity": "error",
"comparison": "string",
"ruleId": "41bd867c-8c8c-5194-75d4-281d94e56a93",
"templateVariable": "RlO"
}
]
}
]