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": {
"R": [
{
"TGEGxWihQ": {
"uka": "ad",
"D": "nisi",
"Vu": "dolor ex consectetur ipsum id",
"Nnsr": "esse eu",
"GoUAr": "ut"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "cant",
"severity": "notices"
},
"_keys": [
"oGO"
],
"_children": [
{
"y": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "must",
"severity": "error"
},
"_value": "b"
}
},
{
"l": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "cant",
"severity": "warning"
},
"_value": "t"
}
}
]
},
"action": "create"
},
"regularErrors": {
"variables": {
"owaAzJUNQAK": [
{
"ICIm": {
"KzaCAhBJpqH": "id voluptate non magna nostrud",
"nytdoBgOzW": "sit",
"luqPagfud": "fugiat qui",
"araAxMvnuqi": "nulla ex eu in pariatur",
"Foddt": "reprehenderit eiusmod proident commodo"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "must",
"severity": "notices"
},
"_value": "K"
},
"action": "create"
},
"deletionErrors": {
"xpaths": [
"/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:interface/ios:Loopback[ios:name='0']"
],
"action": "delete"
}
},
{
"regexErrors": {
"variables": {
"P": [
{
"dIHKAPnYCY": {
"jrZtiCFwIXn": "aute ea non",
"rpWrBJEP": "ullamco dolore",
"PjTg": "sit Lorem do id anim",
"JahVzQhAjTc": "irure mollit",
"IVEcmHCXJr": "culpa amet"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "warning"
},
"_keys": [
"WyNynHzA"
],
"_children": [
{
"V": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "warning"
},
"_value": "h"
}
}
]
},
"action": "create"
},
"regularErrors": {
"variables": {
"tXfB": [
{
"UiiDESVPc": {
"IUkFkRwOYY": "incididunt ea ipsum reprehenderit esse",
"ZRYeeUAyW": "Excepteur laborum exercitation",
"tWJtR": "in",
"LU": "laboris pariatur consequat commodo",
"F": "incididunt"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "must",
"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": "RRYMyXSKNtT",
"data": {
"action": "update",
"success": true
}
},
{
"host": "NEJPyLAeE",
"data": {
"action": "update",
"success": false
}
}
]
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"
]
}
}