Get compliance report for a node on the tree.
Copied to Clipboard
[
{
"_id": "arista0",
"leaf": "ffcac68e-c3d0-4c2b-a057-6235e543a4a6",
"date": "Fri Apr 26 09:56:38 EDT 2019",
"rules": 39545770,
"score": 97.9728671106972,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": false,
"severity": "notices",
"comparison": "string",
"ruleId": "105e3332-bdfc-a076-da38-c5d5ff126797",
"templateVariable": "cjzVfStgj"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": -33193314.67517195,
"severity": "error",
"comparison": "regex",
"ruleId": "040b3189-b316-7a87-f621-756787122cfd",
"templateVariable": "eiuNewe"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": false,
"severity": "notices",
"comparison": "string",
"ruleId": "fc9d31fe-b717-c014-2fc1-091c64a51f3a",
"templateVariable": "XyJPPnzw"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": "DYDO",
"severity": "error",
"comparison": "regex",
"ruleId": "6b2ccdf0-d5ce-ed6b-ae62-c0a35001b9d6",
"templateVariable": "OWR"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": false,
"severity": "notices",
"comparison": "string",
"ruleId": "f07256ce-f658-bbaf-29c1-3fa0c87d0f56",
"templateVariable": "yobDNCVOz"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": -55561509.8052519,
"severity": "notices",
"comparison": "string",
"ruleId": "67077926-c39d-2665-0cc3-df0e46105e20",
"templateVariable": "MTfNKg"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": false,
"severity": "notices",
"comparison": "regex",
"ruleId": "c2bb9fd7-b50d-7880-13a4-d68968eb431b",
"templateVariable": "OKbhfkP"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": "TNyt",
"severity": "error",
"comparison": "string",
"ruleId": "1b8e21b9-e188-c4b5-8b64-1948620bfa9e",
"templateVariable": "l"
}
]
},
{
"_id": "junos0",
"leaf": "b94caee8-ba43-95b4-d0ba-0d7383ce4a94",
"date": "Thu Apr 25 09:56:38 EDT 2019",
"rules": 20894424,
"score": 59.55354615760184,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": 96328881.47982651,
"severity": "warning",
"comparison": "string",
"ruleId": "51d419ef-96bd-0594-9c52-433e9564ac1b",
"templateVariable": "grL"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "ZItA",
"severity": "notices",
"comparison": "string",
"ruleId": "c96fe3b0-8356-01a5-57d8-f5905e12897c",
"templateVariable": "kZfgmRx"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "UP",
"severity": "warning",
"comparison": "regex",
"ruleId": "c0418e08-3367-22a0-e984-e744af2c3db1",
"templateVariable": "rxZvOSn"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": "sVJ",
"severity": "notices",
"comparison": "string",
"ruleId": "fdd054bf-2ad0-5d0a-9d9c-41720b113054",
"templateVariable": "dhKSJAhAso"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": 56686920.15403521,
"severity": "error",
"comparison": "string",
"ruleId": "319d4b25-37f0-9290-5129-63adca67b0ea",
"templateVariable": "fIOhunvJwLr"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": true,
"severity": "warning",
"comparison": "regex",
"ruleId": "66720d42-fe3e-ec33-7733-056ebc19c975",
"templateVariable": "lIkkayAgr"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": true,
"severity": "error",
"comparison": "string",
"ruleId": "e1b77bb1-9244-f165-5eea-d0e2bd933d57",
"templateVariable": "M"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": false,
"severity": "warning",
"comparison": "string",
"ruleId": "fa2c5135-6d3f-6777-733b-8e684f0f0824",
"templateVariable": "CRzcLUyv"
}
]
}
]