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": { "wxG": [ { "WpDFbZfn": { "urhMHxR": "enim laboris", "KXQswfb": "ipsum sit", "fTIVjtVTHL": "minim ullamco", "QIUCVY": "elit sit anim labore", "oTCnX": "exercitation dolore ut enim" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "cant", "severity": "error" }, "_value": "f" }, "action": "create" }, "regularErrors": { "variables": { "hoOaZAsU": [ { "yyEJyWu": { "RnvHNop": "sed eiusmod elit", "kYBUwxLRV": "dolor dolore velit reprehenderit enim", "exHNGcwu": "ipsum cupidatat et officia magna", "xzsgakPOUd": "Ut Duis magna", "nUN": "enim esse" } } ] }, "faml": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "cant", "severity": "error" }, "_keys": [ "QsRYOB", "GoDRDMUoyF", "DMcqfEVB", "Mn" ], "_children": [ { "m": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "warning" }, "_value": "e" } } ] }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:interface/ios:Loopback[ios:name='0']" ], "action": "delete" } }, { "regexErrors": { "variables": { "X": [ { "lJTtkaC": { "JxWzBoSB": "cupidatat Excepteur reprehenderit ullamco mollit", "roH": "ipsum sed nulla cillum ut", "llrEjcSo": "dolore esse voluptate eiusmod ullamco", "ijmjnooE": "laborum qui nisi ea pariatur", "t": "enim" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "must", "severity": "notices" }, "_keys": [ "eZHneWojHl", "BdUjr", "HwQmpbXov", "tnb", "NBOSTeQrMg" ], "_children": [ { "l": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "warning" } } }, { "R": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "warning" } } }, { "f": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "must", "severity": "notices" }, "_value": "t" } }, { "E": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "must", "severity": "error" }, "_value": "K" } } ] }, "action": "create" }, "regularErrors": { "variables": { "fhKNtsKwf": [ { "qWbXnN": { "EmvYyTqBiQt": "cupidatat pariatur", "HAeoNW": "magna dolor voluptate qui", "DhkSyVuaif": "sed", "aTluHj": "nulla mollit", "JMWn": "ea proident Lorem" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "notices" }, "_value": "w" }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:interface/ios:Loopback[ios:name='0']" ], "action": "delete" } }, { "regexErrors": { "variables": { "NCYFJw": [ { "kTLnL": { "efObYTOTl": "enim in et officia", "kTVZaHaC": "dolor quis esse", "EJvbcmjG": "dolore elit sit incididunt", "VCta": "Excepteur dolor fugiat nisi", "WXccZsRoQu": "dolor magna consequat" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "warning" }, "_keys": [ "RnHb", "GevAZ" ], "_children": [ { "K": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "error" }, "_value": "F" } }, { "R": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "must", "severity": "notices" } } }, { "I": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "warning" }, "_value": "T" } }, { "C": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "must", "severity": "error" }, "_value": "F" } } ] }, "action": "create" }, "regularErrors": { "variables": { "ZrcpbZjogDW": [ { "eAnZP": { "ROnGm": "pariatur", "XWowJDoVFFs": "ad", "gi": "fugiat amet quis occaecat", "gaT": "dolore ullamco Duis minim officia", "UGsSsQTcqwW": "sint cupidatat ad minim nisi" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "cant", "severity": "notices" }, "_value": "w" }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:hostname" ], "action": "delete" } }, { "regexErrors": { "variables": { "MgTArtAukhC": [ { "OuiEKF": { "IUZ": "amet eu", "efdPCbIzPH": "tempor sit aute Lorem", "VgvHdnvWb": "nisi", "MwPDOTehMwK": "velit culpa reprehenderit veniam laboris", "HIPnCKoGVo": "eiusmod ut" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "must", "severity": "notices" }, "_keys": [ "vVJheqL" ], "_children": [ { "P": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "cant", "severity": "notices" }, "_value": "w" } } ] }, "action": "create" }, "regularErrors": { "variables": { "pUAcqB": [ { "ckSBz": { "yHr": "velit fugiat consectetur irure", "aGUAmxWgos": "ullamco", "R": "aliquip labore", "WErMbdtHpy": "pariatur in fugiat incididunt dolor", "uzWr": "sit laborum proident exercitation" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "warning" }, "_keys": [ "ZdZKHUmT", "Qo", "tjxGTcyP", "gKxdmPVSqC", "Wk" ], "_children": [ { "U": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "cant", "severity": "warning" }, "_value": "v" } }, { "U": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "cant", "severity": "error" }, "_value": "Y" } } ] }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:hostname" ], "action": "delete" } }, { "regexErrors": { "variables": { "XK": [ { "bpylLncUj": { "CUf": "nisi cillum incididunt tempor", "KSt": "culpa nisi irure commodo sit", "NdOndh": "consectetur ad", "PkpHteDsS": "amet minim", "qlmSUYykMo": "ullamco voluptate in in nostrud" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "warning" }, "_keys": [ "oKjIKfn", "ZmJSMPNPD" ], "_children": [ { "Z": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "error" }, "_value": "c" } }, { "h": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "cant", "severity": "warning" }, "_value": "d" } }, { "A": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "must", "severity": "warning" } } }, { "P": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "warning" } } }, { "y": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "cant", "severity": "error" }, "_value": "A" } } ] }, "action": "create" }, "regularErrors": { "variables": { "NeZivJnJ": [ { "gL": { "tarxKqDN": "in in ullamco pariatur", "yEJPB": "labore sunt", "ldVEu": "aliqua deserunt nostrud sed", "bBaCGObyDRg": "tempor culpa aute sunt qui", "DwQNPwwUs": "dolor cupidatat adipisicing" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "warning" } }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:interface/ios:Loopback[ios:name='0']" ], "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": "QPVe", "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" ] } }