Summary
Dry Run a object of Smart Templates
Description
Dry Run a object of Smart Templates
Route
POST /smart_template/st/dryrunWF
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
instance_data |
object |
yes |
Smart Template Instance |
Copied to Clipboard
{
"instance_data": {
"regexErrors": {
"variables": {
"c": [
{
"SLtotxqW": {
"hoAwSSTGpFO": "pariatur nostrud sunt ut",
"RWrSCWv": "sit minim",
"WJExSI": "culpa elit",
"dMoxM": "in nostrud in",
"VLQl": "qui et labore"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "error"
},
"_keys": [
"rjPHFVGGPvw",
"H"
],
"_children": [
{
"O": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "cant",
"severity": "warning"
}
}
},
{
"l": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "warning"
},
"_value": "J"
}
},
{
"W": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "must",
"severity": "warning"
}
}
}
]
},
"action": "create"
},
"regularErrors": {
"variables": {
"QbfKW": [
{
"oAfgPWd": {
"UnQiyvEPCp": "mollit dolore velit",
"XIrDbbRcz": "cupidatat sint in velit",
"F": "eu",
"GbpaP": "dolore est et culpa",
"Z": "consequat"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "must",
"severity": "error"
},
"_value": "g"
},
"action": "create"
},
"deletionErrors": {
"xpaths": [
"/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:hostname"
],
"action": "delete"
}
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"instance_data": {
"properties": {
"regexErrors": {
"$ref": "smartTemplateInstance"
},
"regularErrors": {
"$ref": "smartTemplateInstance"
},
"deletionErrors": {
"$ref": "deletionInstance"
}
},
"required": [
"regexErrors",
"regularErrors",
"deletionErrors"
]
}
},
"required": [
"instance_data"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
config |
object |
Native Config object |
Copied to Clipboard
[
{
"device": "device3",
"config": "quis"
},
{
"device": "device2",
"config": "Lorem esse ex do"
},
{
"device": "device3",
"config": "proident Excepteur ut sit dolore"
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceDryRun"
},
"maxItems": 3
}