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": {
"yPJNJkac": [
{
"FTmOHpcSsKk": {
"TLAV": "dolor id",
"xWZivTFevse": "est",
"aOhJN": "id",
"NsWMw": "ad",
"iq": "id consectetur esse laborum"
}
}
]
},
"faml": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "must",
"severity": "warning"
},
"_keys": [
"jWbyu",
"aRaPNOK",
"fI",
"Fmzl"
],
"_children": [
{
"R": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "cant",
"severity": "notices"
},
"_value": "W"
}
},
{
"D": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "cant",
"severity": "error"
},
"_value": "i"
}
},
{
"e": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "notices"
},
"_value": "A"
}
},
{
"O": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "must",
"severity": "notices"
}
}
}
]
},
"action": "create"
},
"regularErrors": {
"variables": {
"DXYwXtUlolV": [
{
"XWERX": {
"Jtlw": "nulla eu",
"H": "id est",
"TyKwqx": "ut voluptate Excepteur",
"AlisAgrgYFC": "adipisicing",
"SCWuBqgCvAC": "et"
}
}
]
},
"faml": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "must",
"severity": "notices"
},
"_keys": [
"WlcQ",
"nwBqQWnNa",
"vWcrB"
],
"_children": [
{
"W": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "must",
"severity": "warning"
},
"_value": "C"
}
},
{
"J": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "notices"
}
}
},
{
"n": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "must",
"severity": "notices"
},
"_value": "o"
}
}
]
},
"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": "OHAriMrhZE",
"data": {
"action": "update",
"success": true
}
},
{
"host": "Ua",
"data": {
"action": "update",
"success": true
}
},
{
"host": "BaG",
"data": {
"action": "update",
"success": false
}
},
{
"host": "bXMt",
"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"
]
}
}