Summary
Dry Run multiple objects of Smart Templates
Description
Dry Run multiple objects of Smart Templates
Route
POST /smart_template/st/multiDryrunWF
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
instance_data |
array |
yes |
Array of Smart Template Instances |
Copied to Clipboard
{
"instance_data": [
{
"regexErrors": {
"variables": {
"aIu": [
{
"nA": {
"zPJQiOMP": "sint tempor aliqua do qui",
"vPC": "commodo fugiat ut",
"QqxvjY": "dolore Ut minim",
"tjiVB": "Lorem",
"WbuuAFP": "laboris magna cillum qui"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "must",
"severity": "warning"
},
"_keys": [
"Daabhd",
"zHlNRDSX"
],
"_children": [
{
"m": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "error"
},
"_value": "e"
}
},
{
"h": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "error"
},
"_value": "p"
}
},
{
"z": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "notices"
}
}
}
]
},
"action": "create"
},
"regularErrors": {
"variables": {
"aw": [
{
"IPmJ": {
"TiRv": "nulla elit aute sint in",
"XV": "dolore",
"aOfbwtgXo": "culpa pariatur",
"BPdlrsdRYl": "commodo fugiat exercitation eu Ut",
"tmhMaLYsk": "veniam eiusmod sint ea"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "cant",
"severity": "notices"
}
},
"action": "create"
},
"deletionErrors": {
"xpaths": [
"/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:hostname"
],
"action": "delete"
}
},
{
"regexErrors": {
"variables": {
"WMQBEyagSR": [
{
"pxfeGKMx": {
"FaTfHIDnSrR": "et Duis eiusmod aute",
"eHg": "ad quis anim reprehenderit aute",
"FQtGDRk": "sunt in Ut",
"vAaVfxDIdtQ": "cupidatat",
"QduCqaQGa": "Excepteur sint occaecat fugiat"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "must",
"severity": "error"
},
"_value": "i"
},
"action": "create"
},
"regularErrors": {
"variables": {
"Zx": [
{
"GXJgFBa": {
"BZsGQF": "dolore ut laborum veniam culpa",
"EfENjV": "non sed esse",
"zYJHkv": "officia laborum",
"sDMLG": "commodo cupidatat",
"JICobvGVuxv": "deserunt minim qui ut sint"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "must",
"severity": "notices"
}
},
"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": {
"items": {
"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": "device1",
"config": "nisi velit dolore dolor"
},
{
"device": "device1",
"config": "amet"
},
{
"device": "device1",
"config": "deserunt"
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceDryRun"
},
"maxItems": 3
}