Summary
Get latest reports
Description
Get latest compliance report for all devices on a tree.
Route
GET /golden_config/latest/reports/:tree_id
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
tree_id |
string |
yes |
Tree's ID. |
Copied to Clipboard
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
data |
array |
List of compliance reports |
Copied to Clipboard
[
{
"_id": "arista0",
"leaf": "ea677fcc-25f2-446a-b88f-50ccb06ddc36",
"date": "Thu Apr 25 09:56:38 EDT 2019",
"rules": -16864349,
"score": 64.99845354100641,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": true,
"severity": "warning",
"comparison": "string",
"ruleId": "14576b85-491b-0823-05e2-36fe88091b7c",
"templateVariable": "oMilNQ"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": "yLMDPNrdiu",
"severity": "error",
"comparison": "string",
"ruleId": "667c643c-6143-4098-de1e-1b8a9c8cb463",
"templateVariable": "hdHQuFgQi"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": true,
"severity": "notices",
"comparison": "regex",
"ruleId": "f39efc9e-cf1e-aa86-e202-e22e9c27aae5",
"templateVariable": "uy"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": true,
"severity": "warning",
"comparison": "regex",
"ruleId": "453fe226-b02e-e5c6-c7a4-dc936dcb73f8",
"templateVariable": "WmZsprw"
}
]
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceReport"
}
}