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": "ios0", "leaf": "bd283970-7446-bc08-d934-d1f8959affde", "date": "Fri Apr 26 09:56:38 EDT 2019", "rules": 32102608, "score": 64.10409367838596, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": -56059595.21137991, "severity": "error", "comparison": "regex", "ruleId": "dcad0056-6b87-2fcf-73b3-7de89d77cad9", "templateVariable": "iXfuozRQeM" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "warning", "comparison": "string", "ruleId": "8127f11d-7e21-1f03-fc0f-06136a93aeb8", "templateVariable": "ARyo" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "WNjaP", "severity": "error", "comparison": "string", "ruleId": "36cc033f-7932-76c4-9a12-25f624849df1", "templateVariable": "NqeeEQWJIXJ" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": -3611230.4943499416, "severity": "error", "comparison": "string", "ruleId": "27349fda-7e2c-58f2-7547-01249737cb46", "templateVariable": "XfAPMAL" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": -7097132.029039517, "severity": "notices", "comparison": "regex", "ruleId": "c4d895de-06a0-3cad-f6d3-6bed35294c1f", "templateVariable": "OjyTS" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "pTZ", "severity": "error", "comparison": "string", "ruleId": "600f9246-9e0b-de0a-68d9-9adde23d8ede", "templateVariable": "yFyx" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "BzSfB", "severity": "warning", "comparison": "regex", "ruleId": "13e4dc68-6289-9d84-9cc6-ec00f1d37e3e", "templateVariable": "LOwP" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": 87455762.10422549, "severity": "error", "comparison": "string", "ruleId": "0776ec3b-2705-d5f2-0eaa-6fbdc91c5dda", "templateVariable": "mudwV" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "notices", "comparison": "string", "ruleId": "5d813a26-9e64-a5c9-1281-40496cad7c40", "templateVariable": "iGMPWOnx" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "notices", "comparison": "string", "ruleId": "0df17e59-4114-b8d8-1215-c0334c5cdb33", "templateVariable": "aVaeOyn" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": -57731964.71129482, "severity": "warning", "comparison": "string", "ruleId": "c82d692d-f2e5-00a6-3488-e4b1dfa5b072", "templateVariable": "XT" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": false, "severity": "error", "comparison": "regex", "ruleId": "ba62272f-cf9d-c39b-af49-f1fe3be40caf", "templateVariable": "bHiRU" } ] }, { "_id": "iosxr0", "leaf": "1fcf8857-f233-bc05-ec93-2bc0d1b5c45a", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": -40180482, "score": 5.325882160296191, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": -18713879.75323318, "severity": "error", "comparison": "string", "ruleId": "56f9c9d6-bdd7-5658-fc8d-9dfd01cb4b9f", "templateVariable": "HB" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "cant", "value": true, "severity": "error", "comparison": "regex", "ruleId": "e9926971-19ba-be35-d1cb-b6d21ccab580", "templateVariable": "uy" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": "dLSnyd", "severity": "error", "comparison": "string", "ruleId": "e3845ffd-453f-ead4-6f7f-dd87227c1158", "templateVariable": "QdlMhdqCVR" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": false, "severity": "notices", "comparison": "regex", "ruleId": "c8e0733f-19e8-4c6f-0e12-8de67cf637f9", "templateVariable": "W" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": 77827856.79254976, "severity": "warning", "comparison": "regex", "ruleId": "637feb6d-d901-0cf0-0cb7-4ea2d3f4acf0", "templateVariable": "awSZYcU" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": -5833242.8434467465, "severity": "warning", "comparison": "string", "ruleId": "027b9a8e-2191-38dd-6d01-2216b3716864", "templateVariable": "bLnPsYXx" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": -39161555.81815848, "severity": "notices", "comparison": "regex", "ruleId": "9e14c8bf-a6bf-e42c-1e82-03da642841a0", "templateVariable": "PvLq" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "must", "value": true, "severity": "notices", "comparison": "string", "ruleId": "04a9f99c-cea9-d3e0-1d12-ae5520632173", "templateVariable": "NnxiRDVG" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": false, "severity": "error", "comparison": "regex", "ruleId": "cb7151ce-905a-ce44-31e9-26ce265605de", "templateVariable": "UWwpumDyvvq" } ] }, { "_id": "arista0", "leaf": "0fcff65a-2beb-8e29-b7a2-cbb03f5ea8d7", "date": "Thu Apr 25 09:56:38 EDT 2019", "rules": -56275933, "score": 8.34173238435547, "errors": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": false, "severity": "error", "comparison": "string", "ruleId": "5f210c3c-aed1-beb7-78ba-4cde5c98b680", "templateVariable": "ZjMwj" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": true, "severity": "notices", "comparison": "string", "ruleId": "1d1e561a-9545-c6af-9a39-fcbf01c07439", "templateVariable": "TdAMhYdrh" } ], "warnings": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname", "condition": "cant", "value": "gRXtGc", "severity": "error", "comparison": "regex", "ruleId": "2243bbd6-fd24-36d1-51a5-af47aee9df17", "templateVariable": "ceAn" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "must", "value": true, "severity": "notices", "comparison": "string", "ruleId": "41240aab-379d-4e32-9b7c-0b51c9cbd8d0", "templateVariable": "a" }, { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway", "condition": "must", "value": "zfF", "severity": "warning", "comparison": "regex", "ruleId": "a2e79649-0b8f-f082-1de3-d5e1170ab6bf", "templateVariable": "MUimAH" } ], "notices": [ { "query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version", "condition": "cant", "value": "TWJulhLykKw", "severity": "notices", "comparison": "regex", "ruleId": "1331835a-2760-ee73-8b56-44178514f29f", "templateVariable": "GilyMcxbws" } ] } ]
{ "type": "array", "items": { "$ref": "deviceReport" } }