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": {
"PaWql": [
{
"J": {
"hcVgz": "amet consequat nostrud magna",
"fcTMqSfF": "non qui",
"OcXUda": "consectetur et in adipisicing",
"bwSxlWNJF": "ut proident",
"Hk": "velit irure Ut"
}
}
]
},
"faml": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "cant",
"severity": "error"
}
},
"action": "create"
},
"regularErrors": {
"variables": {
"nw": [
{
"kq": {
"BOdAB": "proident dolor",
"ZscLifULr": "in",
"arCdjVzWAbx": "elit deserunt",
"ff": "incididunt Duis dolor",
"cpF": "commodo dolor est ut"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "warning"
},
"_keys": [
"RjncdKgeFA",
"oUOyFmYell",
"VAyMTqcIpg"
],
"_children": [
{
"u": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "notices"
}
}
},
{
"Q": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "must",
"severity": "error"
}
}
},
{
"x": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "cant",
"severity": "error"
}
}
},
{
"N": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "warning"
},
"_value": "L"
}
}
]
},
"action": "create"
},
"deletionErrors": {
"xpaths": [
"/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:interface/ios:Loopback[ios:name='0']"
],
"action": "delete"
}
},
{
"regexErrors": {
"variables": {
"ESTczY": [
{
"svUD": {
"eiDSmYDS": "sint cupidatat elit culpa aute",
"yHhmKE": "in ex enim do",
"pQGA": "et tempor incididunt",
"gdc": "nulla labore Duis proident",
"lQeInyI": "dolore ad"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "must",
"severity": "error"
}
},
"action": "create"
},
"regularErrors": {
"variables": {
"fDF": [
{
"qnGoZDrAks": {
"LNaKrZvjdt": "sint veniam eu",
"BVsIirlLyHD": "esse",
"LyOxfjEnPI": "ad consectetur in",
"ERFLg": "non Lorem dolor consequat mollit",
"kWeFGIhzRYe": "Duis nulla ipsum dolor non"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "notices"
},
"_value": "w"
},
"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 |
status |
object |
Status of operation |
Copied to Clipboard
[
{
"host": "DBElirLH",
"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"
]
}
}