Summary
Apply value to errors
Description
Selects the errors and changes their value using values from templateVariables
Route
POST /golden_config/applyTemplateVariables
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
complianceErrors |
object |
yes |
Array of errors, device and tree information |
templateVariables |
object |
yes |
An array or object of template variables and the values associated with them |
Copied to Clipboard
{
"complianceErrors": {
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": "DFZVgDTTT",
"severity": "warning",
"comparison": "string",
"ruleId": "9efc1cd6-2bd9-e2d1-b200-3af542b17129",
"templateVariable": "KHNFNjn"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": -79538453.40787312,
"severity": "error",
"comparison": "regex",
"ruleId": "57263a5f-e762-fce6-edeb-5955387ba09f",
"templateVariable": "wmdJ"
},
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": true,
"severity": "notices",
"comparison": "string",
"ruleId": "a5a2d4aa-b19d-d095-4e1e-c4673fb1bc70",
"templateVariable": "oi"
}
]
},
"templateVariables": {
"O": "veniam",
"hhPttt40tO": "irure ullamco occaecat consectetur",
"XUsmXqAJp": "amet"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"complianceErrors": {
"type": "object",
"properties": {
"errors": {
"type": "array",
"items": {
"$ref": "complianceError"
},
"minItems": 1
}
},
"required": [
"errors"
]
},
"templateVariables": {
"$ref": "templateVariables"
}
},
"required": [
"complianceErrors",
"templateVariables"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
complianceErrors |
object |
Array of errors, device and tree information |
Copied to Clipboard
{
"errors": [
{
"query": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"condition": "cant",
"value": 8607466.164559424,
"severity": "error",
"comparison": "string",
"ruleId": "16ec9bab-e5d0-1b8f-82d0-d053c8a5001b",
"templateVariable": "EbZMeQ"
}
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"errors": {
"type": "array",
"items": {
"$ref": "complianceError"
},
"minItems": 1
}
},
"required": [
"errors"
]
}