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": "52391e6a-79c1-4ef7-feaa-592f11fb39b2",
"date": "Wed Apr 24 09:56:38 EDT 2019",
"rules": -36676551,
"score": 94.28536337849991,
"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": "d85f6c66-1d5d-c900-458a-0897c329308a",
"templateVariable": "fGGJGZrKQYZ"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": "wi",
"severity": "notices",
"comparison": "regex",
"ruleId": "50b4f6f8-f6c4-28ae-91b2-619d6ebf3211",
"templateVariable": "xfeTLR"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": false,
"severity": "warning",
"comparison": "regex",
"ruleId": "4011f4a5-87c0-0086-903c-6ab0be553106",
"templateVariable": "TkiLblOt"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": "YvVlB",
"severity": "warning",
"comparison": "string",
"ruleId": "2877b04c-8ab0-fb47-2bc7-a90c8119f059",
"templateVariable": "IBfN"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": false,
"severity": "error",
"comparison": "string",
"ruleId": "04b02479-8bc5-d74d-348b-79254ea048d2",
"templateVariable": "iDHM"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": -90429919.68956806,
"severity": "notices",
"comparison": "regex",
"ruleId": "07365eaf-1281-7c65-6708-b782a80fab2c",
"templateVariable": "ODDOth"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": "x",
"severity": "notices",
"comparison": "string",
"ruleId": "b1d5c710-1894-f832-c0af-a115b64ac7ba",
"templateVariable": "yT"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": true,
"severity": "notices",
"comparison": "string",
"ruleId": "8c366118-962f-4b98-a369-c5c325187eab",
"templateVariable": "iYkqiiox"
}
]
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceReport"
}
}