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": {
"ebQ": [
{
"pHZutVCxAvN": {
"KlHTRbwbxJ": "laborum dolore mollit minim culpa",
"XMYypf": "ea eu incididunt",
"BgdlHZWrvKJ": "commodo",
"TyJqPUe": "commodo nostrud dolore ipsum ad",
"WFVXc": "in"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "must",
"severity": "notices"
},
"_keys": [
"R",
"hTnvIKSYJD",
"cvjZaQhvrG",
"Q",
"fDrzLU"
],
"_children": [
{
"a": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "cant",
"severity": "error"
}
}
},
{
"l": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "must",
"severity": "warning"
},
"_value": "G"
}
},
{
"K": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "must",
"severity": "error"
},
"_value": "j"
}
},
{
"U": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "must",
"severity": "warning"
},
"_value": "Q"
}
}
]
},
"action": "create"
},
"regularErrors": {
"variables": {
"lJSNxV": [
{
"TV": {
"Pe": "occaecat esse amet consequat eiusmod",
"eORt": "magna dolore esse Duis laboris",
"YDZSScZX": "ea nisi",
"L": "id Duis et",
"CdWcai": "proident quis nisi mollit exercitation"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "error"
},
"_keys": [
"ZzpefPIU"
],
"_children": [
{
"e": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "cant",
"severity": "error"
}
}
}
]
},
"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": "HNk",
"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"
]
}
}