Summary
Provision multiple objects of Smart Templates
Description
Provision multiple objects of Smart Templates
Route
POST /smart_template/st/multiProvisionWF
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
instance_data |
array |
yes |
Array of Smart Template Instances |
Copied to Clipboard
{
"instance_data": [
{
"regexErrors": {
"variables": {
"zJRGOrUDWkC": [
{
"nU": {
"nBoxmuBDi": "sed adipisicing ex amet occaecat",
"HMRtCLnGHR": "irure dolore sit officia",
"EhVJaV": "enim pariatur ut labore",
"ItG": "aute laborum ut",
"GkJWwOuyqxU": "est ex irure adipisicing"
}
}
]
},
"faml": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "must",
"severity": "error"
},
"_value": "c"
},
"action": "create"
},
"regularErrors": {
"variables": {
"YrV": [
{
"cLNlFIGy": {
"S": "laborum nulla",
"eeFiWlYun": "exercitation ut ex commodo",
"umOVM": "ipsum velit consequat",
"LE": "Lorem in cillum",
"U": "est"
}
}
]
},
"faml": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "cant",
"severity": "notices"
},
"_keys": [
"DhVCr"
],
"_children": [
{
"O": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "notices"
},
"_value": "J"
}
},
{
"T": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "must",
"severity": "error"
},
"_value": "P"
}
}
]
},
"action": "create"
},
"deletionErrors": {
"xpaths": [
"/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:interface/ios:Loopback[ios:name='0']"
],
"action": "delete"
}
},
{
"regexErrors": {
"variables": {
"Gv": [
{
"zmoPblBQmwS": {
"BjP": "laboris",
"AzrYkOfld": "reprehenderit magna sit elit",
"hsKnd": "in mollit",
"lxFSd": "Excepteur",
"oSbYwHgLgLQ": "id laborum deserunt"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "must",
"severity": "error"
}
},
"action": "create"
},
"regularErrors": {
"variables": {
"P": [
{
"vCdVZogMoG": {
"nvdovIS": "voluptate anim Lorem sunt",
"LHCyK": "quis voluptate esse",
"LUAzrGI": "sint officia",
"TkbVOO": "dolor sunt laborum in incididunt",
"EvSx": "voluptate sit non"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "notices"
},
"_value": "q"
},
"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": {
"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 |
status |
object |
Status of operation |
Copied to Clipboard
[
{
"host": "SUUDsQuGQDD",
"data": {
"action": "update",
"success": true
}
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"type": "object",
"properties": {
"host": {
"type": "string",
"pattern": "[a-zA-Z]+"
},
"data": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"update"
]
},
"success": {
"type": "boolean"
}
},
"reqiuired": [
"action",
"success"
]
}
},
"required": [
"host",
"data"
]
}
}