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": {
"XCditKsFk": [
{
"tDwZBRY": {
"EUfDA": "sunt commodo irure laborum in",
"bEUbIrHx": "incididunt veniam dolor elit do",
"rBmnVPw": "nostrud mollit dolore consequat id",
"PqytzNLJ": "Duis qui eiusmod",
"UQCuaS": "nulla consequat fugiat sunt"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "cant",
"severity": "notices"
},
"_keys": [
"kXTP"
],
"_children": [
{
"f": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "must",
"severity": "notices"
},
"_value": "o"
}
},
{
"v": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "must",
"severity": "error"
}
}
},
{
"R": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "notices"
}
}
}
]
},
"action": "create"
},
"regularErrors": {
"variables": {
"U": [
{
"Nfawrj": {
"roHSFXQ": "sunt ipsum dolore",
"ZNfkWaPMs": "Ut esse cupidatat ex",
"ZfCloohN": "labore minim",
"zDrFS": "adipisicing dolor ex",
"lFSZAwS": "occaecat elit"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "must",
"severity": "warning"
},
"_value": "d"
},
"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": "k",
"data": {
"action": "update",
"success": false
}
},
{
"host": "DCaIpc",
"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"
]
}
}