Get report based on device and tree ID.
Copied to Clipboard
{
"_id": "arista0",
"leaf": "c79e6cf9-32ca-68f4-1e04-b5d4ac03d231",
"date": "Thu Apr 25 09:56:38 EDT 2019",
"rules": 23168710,
"score": 53.99559325014751,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": false,
"severity": "warning",
"comparison": "string",
"ruleId": "85d674cb-6aad-5092-0404-329584d5b7de",
"templateVariable": "K"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": true,
"severity": "notices",
"comparison": "regex",
"ruleId": "d5d9f368-4547-54fc-94db-2675fecd0aff",
"templateVariable": "unehPirc"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": false,
"severity": "error",
"comparison": "string",
"ruleId": "0873f301-5e99-6b6e-e006-56e123692fe3",
"templateVariable": "cFD"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": true,
"severity": "warning",
"comparison": "regex",
"ruleId": "12923772-a5b4-5381-3c78-97d688fb3bc7",
"templateVariable": "nsxwMhobUx"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": 63615140.0456242,
"severity": "error",
"comparison": "regex",
"ruleId": "e046a9fb-c138-f952-9d30-c89ef3cfb26d",
"templateVariable": "lhqMrXMGNIt"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": false,
"severity": "error",
"comparison": "string",
"ruleId": "8b11f5f7-0e33-2c05-813c-2692c82c5dfc",
"templateVariable": "ZAbVpoWCaF"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": 94114161.10176164,
"severity": "notices",
"comparison": "string",
"ruleId": "d6717f21-7b23-a1dd-1cb6-c8fec74f9409",
"templateVariable": "p"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": -55933438.6343608,
"severity": "error",
"comparison": "string",
"ruleId": "2930308e-80bc-6006-ed8a-65720ec79599",
"templateVariable": "hZbFfeQOov"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": "QcNfT",
"severity": "warning",
"comparison": "string",
"ruleId": "47c3944e-ac4b-7067-39a5-fbf70c322173",
"templateVariable": "O"
}
]
}