Summary
Get latest reports
Description
Get latest compliance report for all devices on a tree.
Route
GET /golden_config/latest/reports/:tree_id
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
tree_id | string | yes | Tree's ID. |
null
{ "type": "object", "properties": {}, "required": [], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
data | array | List of compliance reports |
[ { "_id": "iosxr0", "leaf": "54ad8656-aa43-6712-d3e2-61cf0864dd28", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 21223037, "score": 14.989094497621469, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "FqnnYJHtC", "severity": "warning", "comparison": "string", "ruleId": "fad18468-5738-2daf-e4fe-d179832e2e88", "templateVariable": "xpd" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "4fb7f699-5207-159e-e5d1-fa271a44eaed", "templateVariable": "ObjXr" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "DNREY", "severity": "warning", "comparison": "string", "ruleId": "05547ea7-6f1b-4b01-832f-4cd6e839f6bd", "templateVariable": "O" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "error", "comparison": "string", "ruleId": "971c923b-69d4-6bc7-5751-49da5bdee330", "templateVariable": "IPBc" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "q", "severity": "notices", "comparison": "string", "ruleId": "d524efd4-557b-579e-92a6-f91a6e7c8c10", "templateVariable": "BOCC" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "439fcd1b-6635-fa29-91f2-15190d9ec64d", "templateVariable": "FnpixDbLvrP" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "xKBlABQSm", "severity": "warning", "comparison": "string", "ruleId": "22acc33d-5bf6-bd09-efa4-35c5bea5965a", "templateVariable": "y" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "JxkszUG", "severity": "error", "comparison": "string", "ruleId": "147e1dd3-52ac-e53d-3b64-fdd830f49bc2", "templateVariable": "BgOe" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": 89965312.69359171, "severity": "warning", "comparison": "string", "ruleId": "262a51ce-39c0-39fc-368e-17898be00263", "templateVariable": "ZwqUVoB" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "3a802220-3ef6-177a-c3cc-c93192da2f73", "templateVariable": "an" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "wYyVvsPzfFZ", "severity": "notices", "comparison": "string", "ruleId": "371a7672-f5bb-c695-3b95-14cc11d517ca", "templateVariable": "FrNYGeRQkxp" } ] }, { "_id": "ios0", "leaf": "a90e18e8-03d7-0a2e-c485-003df00f5dea", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": 86014772, "score": 71.49419268397865, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": 80532108.94867799, "severity": "notices", "comparison": "string", "ruleId": "7a47212d-973b-7ca0-cbe4-a2c6de898526", "templateVariable": "tTWInSdktw" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "NtlbuHT", "severity": "notices", "comparison": "regex", "ruleId": "fb27be36-1f87-e07c-843e-fa38cfc39a1e", "templateVariable": "NwDchsmjQ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": "XMRvYkLRH", "severity": "notices", "comparison": "regex", "ruleId": "817bf3d1-c8ce-1cb7-6b18-c03beb768dd8", "templateVariable": "kLwg" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "SQzKhFRQdSm", "severity": "warning", "comparison": "string", "ruleId": "ed5de5b1-5443-38f9-e486-3eac4e4059fa", "templateVariable": "pG" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": "QuQmrY", "severity": "notices", "comparison": "string", "ruleId": "c2e06411-c395-cc07-c75e-36786e1b9901", "templateVariable": "vCAa" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "08b73b10-b08f-381e-776c-462b476bb3bf", "templateVariable": "MGaaLp" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": 41896342.44420925, "severity": "warning", "comparison": "string", "ruleId": "235be434-1964-a3b7-f290-376a55197b40", "templateVariable": "AIzWvI" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }