Summary
Get compliance report
Description
Get compliance report for a node on the tree.
Route
GET /golden_config/reports/:key/:value
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
key |
string |
yes |
Report key. |
value |
string |
yes |
Report value. |
Copied to Clipboard
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
data |
object |
Compliance report. |
Copied to Clipboard
[
{
"_id": "iosxr0",
"leaf": "b7370ae3-3697-560e-0493-5aff2c546683",
"date": "Fri Apr 26 09:56:38 EDT 2019",
"rules": 6738286,
"score": 56.80262838217401,
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": "HVT",
"severity": "warning",
"comparison": "string",
"ruleId": "d9ce30e3-5e37-2419-fda5-afe53c4ee8cb",
"templateVariable": "mY"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": -31686549.564564496,
"severity": "error",
"comparison": "string",
"ruleId": "948372b2-3b76-dc83-9e9a-ce1ebc630c19",
"templateVariable": "UhjtEQtzus"
}
],
"warnings": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "must",
"value": -44969174.763396904,
"severity": "notices",
"comparison": "regex",
"ruleId": "a67b66a6-7083-355a-5d06-17e4fa9362c9",
"templateVariable": "cJcpYi"
}
],
"notices": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": 67421786.08256567,
"severity": "notices",
"comparison": "string",
"ruleId": "0d3a5d1d-5e4c-2136-9ff0-ee38a5894358",
"templateVariable": "IGOPyf"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": true,
"severity": "warning",
"comparison": "regex",
"ruleId": "0dc853dc-5fa4-fb93-315a-b4e690bf295b",
"templateVariable": "j"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"condition": "cant",
"value": true,
"severity": "notices",
"comparison": "string",
"ruleId": "4172c69d-f139-d80c-488f-58d8f4fdb779",
"templateVariable": "el"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "must",
"value": 31360767.614477098,
"severity": "error",
"comparison": "string",
"ruleId": "1b6a93a2-4e89-2722-9805-c9577e804ecb",
"templateVariable": "e"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"condition": "cant",
"value": false,
"severity": "error",
"comparison": "string",
"ruleId": "d8a51f0a-a4f0-9207-d1aa-10a0a53be3ee",
"templateVariable": "PEWPNclbv"
}
]
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceReport"
}
}