Get report based on device and tree ID.
Copied to Clipboard
{
"_id": "junos0",
"leaf": "b31eda28-48e6-6758-2ffa-11f7ae0b9dd1",
"date": "Wed Apr 24 09:56:38 EDT 2019",
"rules": 82319502,
"score": 57.73630876631009,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": "Z",
"severity": "warning",
"comparison": "string",
"ruleId": "25979dbd-f17a-8178-ac5c-3d1d84aeebba",
"templateVariable": "OoKy"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": 81553784.4160716,
"severity": "error",
"comparison": "regex",
"ruleId": "1188c3b3-b997-7149-231f-61371af990fb",
"templateVariable": "dg"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": 31511128.040780216,
"severity": "error",
"comparison": "string",
"ruleId": "91878e4d-686e-ad57-cd73-159e575bd997",
"templateVariable": "aIQ"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": 18979807.255776614,
"severity": "notices",
"comparison": "regex",
"ruleId": "39a093d7-4d30-310c-ab75-b2b3f1868542",
"templateVariable": "gWPrziLA"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "cEAyYXGs",
"severity": "error",
"comparison": "string",
"ruleId": "589070b0-f169-14ad-59f0-bcf65a3a5c55",
"templateVariable": "BYB"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": "Ygn",
"severity": "notices",
"comparison": "string",
"ruleId": "dae533d3-fcc9-7db5-5c30-bbff296f091b",
"templateVariable": "wsfBEA"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": true,
"severity": "notices",
"comparison": "string",
"ruleId": "1105d961-30cc-ae2e-ad17-0dd4071e8e50",
"templateVariable": "jYKpAzg"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": false,
"severity": "notices",
"comparison": "string",
"ruleId": "0fb07f00-dd0b-b559-c6b8-5fc984e7af46",
"templateVariable": "QBWdaBspQC"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": -60021086.7310504,
"severity": "notices",
"comparison": "regex",
"ruleId": "1d9b6cfd-8bc9-7899-998a-bae9d1822916",
"templateVariable": "JGaxZtAf"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": "qD",
"severity": "warning",
"comparison": "string",
"ruleId": "3165fd2d-7343-d899-a0f3-0ee8fd1059f5",
"templateVariable": "AL"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": true,
"severity": "error",
"comparison": "string",
"ruleId": "b18aec01-7df4-2d29-6186-b3f5f12f1c56",
"templateVariable": "a"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": 2172202.0232832283,
"severity": "warning",
"comparison": "string",
"ruleId": "6d339e76-7ffd-cbba-9aed-c13695a0975d",
"templateVariable": "tqHKwuJNlf"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": false,
"severity": "notices",
"comparison": "regex",
"ruleId": "d08cd1ea-c48f-5e15-533d-513518327ffc",
"templateVariable": "JPZEV"
}
]
}