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": {
"zbZJuyoKj": [
{
"A": {
"Nlbr": "ipsum qui",
"AyKYOMhtAo": "sint",
"pldbAcBEa": "pariatur",
"wmGlqI": "minim labore in ea",
"ePgNyCypA": "elit in"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "error"
}
},
"action": "create"
},
"regularErrors": {
"variables": {
"xgHDVvgD": [
{
"gGte": {
"CxmWfwbSezB": "aliquip aliqua nulla laborum proident",
"laRQXfmMNOu": "cillum",
"SLBvOdFANJA": "esse",
"YNG": "sit nisi",
"Bxe": "esse ullamco occaecat"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "cant",
"severity": "warning"
}
},
"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": "ex aliquip ea occaecat cillum"
},
{
"device": "device3",
"config": "id enim"
},
{
"device": "device2",
"config": "adipisicing in"
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceDryRun"
},
"maxItems": 3
}