Summary
Provision a object of Smart Templates
Description
Provision a object of Smart Templates
Route
POST /smart_template/st/provisionWF
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
instance_data |
object |
yes |
Smart Template Instance |
Copied to Clipboard
{
"instance_data": {
"regexErrors": {
"variables": {
"EjGBYGHwVIe": [
{
"JppYvIblbwU": {
"vZ": "dolore consequat elit ut ipsum",
"tqs": "nisi ullamco id occaecat ut",
"QXBA": "cillum proident cupidatat veniam aliqua",
"vEZUjekFXV": "sint aliquip",
"wUboriu": "ullamco sunt fugiat"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "must",
"severity": "error"
},
"_keys": [
"gAFNwceXc"
],
"_children": [
{
"c": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "notices"
}
}
},
{
"C": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "notices"
},
"_value": "A"
}
}
]
},
"action": "create"
},
"regularErrors": {
"variables": {
"oKCw": [
{
"QDOBhHUkHTi": {
"VizLBTX": "Ut dolore Excepteur ullamco",
"dJvlWYXqE": "Excepteur quis",
"TcMrtM": "dolore est cupidatat",
"Sa": "eu amet in irure",
"ZTYfC": "consequat in proident ex sint"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "must",
"severity": "error"
},
"_value": "j"
},
"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": {
"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": "RvNAVyDLRQ",
"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"
]
}
}