Get compliance report for a node on the tree.
Copied to Clipboard
[
{
"_id": "arista0",
"leaf": "378aef81-e3ed-cce2-6f93-3dfa6a4e0805",
"date": "Thu Apr 25 09:56:38 EDT 2019",
"rules": 82913920,
"score": 61.15017043993149,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "IHMXp",
"severity": "notices",
"comparison": "string",
"ruleId": "049e3d58-97dc-b7db-072d-ec467ee8b61f",
"templateVariable": "pcoJpAN"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": true,
"severity": "notices",
"comparison": "regex",
"ruleId": "5ff42c14-3123-6717-5f78-981687084eb3",
"templateVariable": "zdQEaGSpn"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "Ig",
"severity": "warning",
"comparison": "regex",
"ruleId": "f34f902d-748f-d4b9-498b-b1927390bd31",
"templateVariable": "IlU"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": 87275268.75875884,
"severity": "error",
"comparison": "regex",
"ruleId": "b79f27f9-0b57-fac5-6d40-5a3e445ad07c",
"templateVariable": "GGxPgqP"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": -97070794.20538186,
"severity": "warning",
"comparison": "string",
"ruleId": "de426327-b464-48e5-e822-6c754169a993",
"templateVariable": "HT"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "aXfiEf",
"severity": "warning",
"comparison": "string",
"ruleId": "f92528b2-ba15-6d44-9dc1-31882b3a5810",
"templateVariable": "DjtdR"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": -26868037.808588862,
"severity": "error",
"comparison": "regex",
"ruleId": "13c0631d-75d7-64a0-9688-4acbf063b962",
"templateVariable": "FjOhxm"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": -24556803.31223111,
"severity": "warning",
"comparison": "regex",
"ruleId": "3cafcfdb-f1c3-d623-92d8-e24f40b49f85",
"templateVariable": "pswMqlyi"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": "ZPoHITCfLaX",
"severity": "notices",
"comparison": "string",
"ruleId": "5ddfc1b7-a18a-7832-95b6-c24eb567213a",
"templateVariable": "oJTVzp"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": true,
"severity": "warning",
"comparison": "string",
"ruleId": "a1dcd74f-964e-1f9b-9593-bc4024c63743",
"templateVariable": "NiFjt"
}
]
}
]