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": {
"bp": [
{
"N": {
"Va": "sed magna voluptate in ad",
"kQt": "adipisicing",
"XvjIjCowrI": "aliqua esse dolore",
"bPqCufZIZXQ": "ex minim laborum fugiat laboris",
"ynRNo": "culpa proident deserunt"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "error"
},
"_keys": [
"uuStrLN",
"MjBCqFUm"
],
"_children": [
{
"p": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "must",
"severity": "notices"
}
}
}
]
},
"action": "create"
},
"regularErrors": {
"variables": {
"nogegRoo": [
{
"hYw": {
"ZGgtWrqgYVM": "ad",
"DnQhRWy": "quis cillum sed",
"LfNMR": "laboris ad ex occaecat ut",
"XeTg": "adipisicing",
"ZsLunbEK": "elit proident"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "must",
"severity": "error"
}
},
"action": "create"
},
"deletionErrors": {
"xpaths": [
"/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:interface/ios:Loopback[ios:name='0']"
],
"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": "sed fugiat proident"
},
{
"device": "device3",
"config": "sunt ex"
},
{
"device": "device2",
"config": "adipisicing cillum aute"
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceDryRun"
},
"maxItems": 3
}