Summary
Provision multiple objects of Smart Templates
Description
Provision multiple objects of Smart Templates
Route
POST /smart_template/st/multiProvisionWF
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
instance_data | array | yes | Array of Smart Template Instances |
{ "instance_data": [ { "regexErrors": { "variables": { "ueeylS": [ { "Qwp": { "uNP": "voluptate ipsum", "RwWiAaR": "Lorem", "PrRcBaKbh": "nulla", "UvgaiCBjnX": "exercitation", "bbH": "ad enim culpa ea" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "cant", "severity": "error" }, "_value": "G" }, "action": "create" }, "regularErrors": { "variables": { "Eupwo": [ { "eeJrABOPQJg": { "iVVTA": "consectetur quis amet magna cupidatat", "ir": "dolore in esse non officia", "gzFGuTiCh": "do ex dolore aliqua ut", "TSlYRnTQ": "do Lorem ex esse reprehenderit", "AtRge": "cupidatat Excepteur dolor ea ipsum" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "must", "severity": "warning" }, "_keys": [ "yeG" ], "_children": [ { "k": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "must", "severity": "notices" } } }, { "B": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "cant", "severity": "error" }, "_value": "V" } }, { "v": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "cant", "severity": "error" }, "_value": "B" } } ] }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:hostname" ], "action": "delete" } }, { "regexErrors": { "variables": { "JFIw": [ { "Tie": { "K": "elit cupidatat", "AoHnUEDsL": "ut", "bdn": "culpa", "uyehCgd": "ut culpa cupidatat", "wFHLDcLPYg": "sit nostrud quis" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "cant", "severity": "notices" }, "_value": "D" }, "action": "create" }, "regularErrors": { "variables": { "lZPzCR": [ { "ipRwvE": { "xWMngNa": "veniam Lorem irure aute non", "xRecnGLkND": "quis culpa elit pariatur", "xxaoZ": "sint irure", "dfuFugxJouK": "consectetur cillum dolore", "NYXKvYVo": "ullamco" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "must", "severity": "warning" }, "_keys": [ "tWduCuLTLwb", "d", "GOrMDle", "Uv" ], "_children": [ { "e": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "cant", "severity": "warning" } } }, { "Y": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "cant", "severity": "error" }, "_value": "m" } } ] }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:hostname" ], "action": "delete" } } ] }
{ "type": "object", "properties": { "instance_data": { "items": { "properties": { "regexErrors": { "$ref": "smartTemplateInstance" }, "regularErrors": { "$ref": "smartTemplateInstance" }, "deletionErrors": { "$ref": "deletionInstance" } }, "required": [ "regexErrors", "regularErrors", "deletionErrors" ] } } }, "required": [ "instance_data" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
status | object | Status of operation |
[ { "host": "TJNfURffji", "data": { "action": "update", "success": false } }, { "host": "cVM", "data": { "action": "update", "success": false } } ]
{ "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" ] } }