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": {
"i": [
{
"jeOVj": {
"pUOSRrDU": "consequat non",
"YjeUX": "minim in dolore",
"V": "in sunt",
"IzvaHy": "deserunt nulla consectetur in",
"mwoTvk": "dolore minim Duis"
}
}
]
},
"faml": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "cant",
"severity": "notices"
},
"_value": "f"
},
"action": "create"
},
"regularErrors": {
"variables": {
"ZvqF": [
{
"HZ": {
"xrdEyIaIxQw": "sed incididunt pariatur",
"ol": "eu dolore dolor commodo consectetur",
"RZOWkVyMDMT": "magna voluptate",
"OWNOBN": "mollit",
"akEn": "quis"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "must",
"severity": "notices"
},
"_value": "Z"
},
"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": "adOIEHZJJe",
"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"
]
}
}