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": {
"pfSwgYD": [
{
"WWVFEUzsvG": {
"NZbuj": "exercitation laboris occaecat",
"acMg": "cillum",
"aPHDE": "magna velit enim in dolore",
"WWgGLxADC": "cillum nostrud amet anim velit",
"FJOGfKqcfJ": "et"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "must",
"severity": "notices"
},
"_value": "W"
},
"action": "create"
},
"regularErrors": {
"variables": {
"LNWBurQ": [
{
"WrM": {
"N": "velit Lorem",
"COgab": "ut irure",
"THYGzmiRCRb": "fugiat occaecat Excepteur sit",
"Its": "aute sit",
"Il": "culpa aliquip amet labore in"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "must",
"severity": "notices"
},
"_keys": [
"wWlNWl",
"omGRvqUxJM",
"LoPOsRk",
"muo",
"hwWEOlYxFM"
],
"_children": [
{
"Y": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "cant",
"severity": "warning"
}
}
}
]
},
"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": "aJjGBlBc",
"data": {
"action": "update",
"success": true
}
},
{
"host": "yCYQza",
"data": {
"action": "update",
"success": false
}
},
{
"host": "ZaYSVWAR",
"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"
]
}
}