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": "iosxr0",
"leaf": "2d682c67-079f-375c-0bf6-b05a0a23f9c9",
"date": "Fri Apr 26 09:56:38 EDT 2019",
"rules": 43780653,
"score": 9.995357512173175,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": 47200578.06990102,
"severity": "notices",
"comparison": "string",
"ruleId": "c3179fa9-686e-dd3c-77c3-8a0d8977c4e1",
"templateVariable": "ivjpPBbD"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": 12521146.031521946,
"severity": "error",
"comparison": "regex",
"ruleId": "51a012e6-10ff-46c2-1d16-a4d47b7d9b94",
"templateVariable": "QykphT"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": -46267059.19910603,
"severity": "error",
"comparison": "string",
"ruleId": "dca0373c-3034-361f-14bd-acf4e5aef126",
"templateVariable": "pzvoy"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": "UGZ",
"severity": "warning",
"comparison": "string",
"ruleId": "e7928367-9bf9-2fe4-ee6a-5896bfc378e9",
"templateVariable": "MtQHHYuuTF"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": true,
"severity": "notices",
"comparison": "string",
"ruleId": "2e4c80d7-1ed5-14b6-108a-2dd1bd217f39",
"templateVariable": "Tv"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": "zUcwComRfFl",
"severity": "notices",
"comparison": "string",
"ruleId": "6a4441ba-0e83-9803-bb3a-82c600e1b6fc",
"templateVariable": "CPqhXtozU"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": -29829818.836824894,
"severity": "notices",
"comparison": "string",
"ruleId": "727db3e3-0b84-db4a-aed2-06a0f99e5dae",
"templateVariable": "EOejAUNF"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "must",
"value": false,
"severity": "error",
"comparison": "regex",
"ruleId": "f211f77c-8602-c9d0-5006-2c701cd47bc5",
"templateVariable": "Bb"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": -5541899.293927789,
"severity": "notices",
"comparison": "string",
"ruleId": "87b7559e-5848-e5fe-fade-48a3c41f06a2",
"templateVariable": "LadztGJim"
}
]
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceReport"
}
}