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": { "ToCcpWP": [ { "bETMNrWIp": { "cVGMJ": "voluptate", "uO": "dolor fugiat ad officia eiusmod", "GiL": "Lorem sed et esse cupidatat", "jrYOj": "dolore amet anim", "nbplI": "consectetur pariatur" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "must", "severity": "error" }, "_keys": [ "qvuPMbhtMGM", "wSLfow", "CxFzRMlcMjg", "yWMskauNhy" ], "_children": [ { "G": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "must", "severity": "notices" } } } ] }, "action": "create" }, "regularErrors": { "variables": { "rNP": [ { "sehKgiJPTf": { "bLYpBkgx": "Excepteur occaecat do in laboris", "nPFvOVpnZco": "laboris aliquip commodo", "dqoiGgV": "dolor ut reprehenderit fugiat non", "AgUtu": "Duis in", "FKywM": "sed" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "must", "severity": "warning" } }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:hostname" ], "action": "delete" } }, { "regexErrors": { "variables": { "DGJgsk": [ { "L": { "su": "ea magna velit commodo", "AIgHjEeGoc": "sed est sint cillum quis", "un": "elit do nisi veniam", "EaNCABI": "in", "cOG": "aute sint mollit amet esse" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "notices" }, "_value": "B" }, "action": "create" }, "regularErrors": { "variables": { "FPGlkL": [ { "lha": { "MeSvetrKYRy": "consequat eu", "h": "cillum", "EVXRdDgNya": "officia commodo dolore nulla ad", "gUb": "nostrud", "XxLuFE": "ad sunt dolore Lorem cillum" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "must", "severity": "warning" }, "_keys": [ "EVc", "Oobm", "aRb", "ECwqeYTGESd" ], "_children": [ { "z": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "warning" }, "_value": "t" } }, { "g": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "must", "severity": "error" }, "_value": "H" } }, { "p": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "warning" } } }, { "x": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "must", "severity": "error" }, "_value": "n" } }, { "w": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "notices" }, "_value": "y" } } ] }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:interface/ios:Loopback[ios:name='0']" ], "action": "delete" } }, { "regexErrors": { "variables": { "n": [ { "jgo": { "GMoyTZh": "cillum laborum anim sit", "NXMXo": "commodo officia", "zpOqsvgNu": "aute officia tempor occaecat deserunt", "gkLCVNMYY": "mollit", "JTWqDgIwix": "dolor ad pariatur cillum" } } ] }, "faml": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "cant", "severity": "notices" }, "_keys": [ "dfQzY" ], "_children": [ { "b": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "cant", "severity": "warning" } } }, { "P": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "must", "severity": "error" } } }, { "f": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "must", "severity": "notices" } } }, { "Y": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "must", "severity": "warning" }, "_value": "I" } }, { "N": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "notices" }, "_value": "s" } } ] }, "action": "create" }, "regularErrors": { "variables": { "SYxao": [ { "QJeqYOtoao": { "HFsnTeeHK": "adipisicing labore quis", "OOXfT": "esse", "JB": "nulla Duis pariatur", "bqXxAR": "dolore culpa labore in ad", "UdTRT": "nisi" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "must", "severity": "notices" } }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:hostname" ], "action": "delete" } }, { "regexErrors": { "variables": { "V": [ { "ExdWMZsgQC": { "hETQoA": "sunt nostrud", "gIYyXVfxf": "magna officia culpa", "qbvvi": "dolore Ut laborum", "AkWU": "sunt culpa ad", "gEJSKFMkOy": "elit quis cupidatat" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "notices" }, "_keys": [ "DwQSYOL", "TquJiRph", "IOLrqHNJEH", "qgDJgoH", "y" ], "_children": [ { "o": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "cant", "severity": "error" } } }, { "u": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "error" } } }, { "O": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "cant", "severity": "warning" }, "_value": "w" } }, { "B": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "warning" }, "_value": "m" } } ] }, "action": "create" }, "regularErrors": { "variables": { "tJwzIwwx": [ { "hDm": { "vr": "adipisicing", "WfxRryiYVdO": "culpa", "ZQwcFHARp": "quis consectetur ut", "nogn": "pariatur cupidatat esse eiusmod", "FHXoCUU": "Lorem amet" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "must", "severity": "warning" }, "_value": "K" }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:hostname" ], "action": "delete" } }, { "regexErrors": { "variables": { "j": [ { "sCXB": { "sxw": "dolor commodo dolore magna", "oXyuhbpDAy": "dolore sunt consequat anim", "EQWJF": "dolor proident", "iEiSVdM": "nisi culpa", "TdkWbWWP": "in enim culpa Excepteur voluptate" } } ] }, "faml": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "warning" } }, "action": "create" }, "regularErrors": { "variables": { "VE": [ { "jUjzZumQxje": { "PZvEmEMVviX": "in", "AxUnHHxgGz": "in adipisicing labore", "OJBzKtKxtjP": "in", "kiaX": "irure labore consequat", "naWrpKKmBU": "ad ut consequat" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "notices" } }, "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": "Cm", "data": { "action": "update", "success": false } }, { "host": "mhbRrhms", "data": { "action": "update", "success": true } }, { "host": "u", "data": { "action": "update", "success": true } }, { "host": "tLJMgm", "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" ] } }