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": {
"HzJEjmdo": [
{
"lWHX": {
"VTKJYDGYLTa": "aliqua ex",
"utuVjuWMopo": "nisi sit cillum nostrud consectetur",
"saR": "magna aliquip id eiusmod",
"bDvQ": "tempor in Lorem labore",
"AXbdDFYm": "consequat eiusmod tempor aliqua sit"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "warning"
},
"_value": "p"
},
"action": "create"
},
"regularErrors": {
"variables": {
"LfkhAV": [
{
"eqtjnLcRvR": {
"FhvStX": "reprehenderit cillum",
"fhDaxHZ": "ullamco cupidatat sit nostrud",
"jgN": "proident sint ut magna",
"pzGowB": "velit",
"KAwp": "velit"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/ncs",
"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": {
"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": "kERRPmADr",
"data": {
"action": "update",
"success": false
}
},
{
"host": "ZVNde",
"data": {
"action": "update",
"success": true
}
},
{
"host": "IcprLfBAUz",
"data": {
"action": "update",
"success": false
}
},
{
"host": "EoObh",
"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"
]
}
}