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": { "kTjJXvDznNd": [ { "ciBoElO": { "r": "officia nostrud consectetur ullamco", "HGtfOrKbd": "sunt", "FQRWnetEQN": "elit ut nostrud eu", "WIKREVgH": "sit est aute officia nisi", "ulUEJktB": "dolor" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "error" } }, "action": "create" }, "regularErrors": { "variables": { "SuDDc": [ { "xXz": { "V": "proident culpa", "YmjqPy": "exercitation", "EbDYQnfyQS": "dolore incididunt magna", "vhZaNmfjecZ": "consequat culpa ut", "l": "ipsum consequat" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "must", "severity": "notices" }, "_value": "I" }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:interface/ios:Loopback[ios:name='0']" ], "action": "delete" } }, { "regexErrors": { "variables": { "msNBRMGUtmO": [ { "Cw": { "GgszozDZWN": "Ut non Duis Lorem in", "fpvAoOg": "laborum dolore labore culpa qui", "IYrvOdfAX": "incididunt", "onmobUm": "in dolore eiusmod", "Jxurmq": "dolor et" } } ] }, "faml": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "warning" }, "_keys": [ "BrieMORnBF", "Ohyn", "uskw" ], "_children": [ { "m": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "notices" }, "_value": "b" } }, { "J": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "cant", "severity": "error" } } } ] }, "action": "create" }, "regularErrors": { "variables": { "MdlnMPafvBO": [ { "XALuB": { "BOQiEbmkt": "irure et mollit", "LTMqQ": "ullamco", "dXAIaHcY": "esse", "uV": "velit laboris reprehenderit nulla ut", "sSsGfEAG": "Excepteur" } } ] }, "faml": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "notices" }, "_keys": [ "pkUCGmfaZxX", "BxrKRRw", "pWUwdlgPIhW", "XEzMjNI" ], "_children": [ { "E": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "cant", "severity": "notices" } } }, { "j": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "warning" }, "_value": "l" } }, { "u": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "must", "severity": "warning" } } }, { "r": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "warning" } } }, { "P": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "must", "severity": "notices" }, "_value": "J" } } ] }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:interface/ios:Loopback[ios:name='0']" ], "action": "delete" } }, { "regexErrors": { "variables": { "CuqGjD": [ { "WSxYr": { "oIGfucScBKe": "dolor", "TUkMaImFi": "consequat proident reprehenderit amet dolor", "fDzVSfjHs": "deserunt enim aliquip", "pDpaJ": "adipisicing anim", "JYqL": "proident adipisicing aliqua labore" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "must", "severity": "error" } }, "action": "create" }, "regularErrors": { "variables": { "dfBpyPcaYBJ": [ { "NfsSDQfWA": { "Hq": "occaecat velit incididunt proident officia", "NvgwJcSOF": "mollit deserunt", "mPEuboaqi": "nulla", "XRL": "do ut voluptate esse Excepteur", "ekDjHFup": "sint elit" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "must", "severity": "notices" }, "_value": "U" }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:interface/ios:Loopback[ios:name='0']" ], "action": "delete" } }, { "regexErrors": { "variables": { "TFO": [ { "wV": { "aNCHD": "nulla", "MHlAQteLqSU": "non officia incididunt amet", "TR": "in aliqua laboris", "RQoG": "consectetur", "hX": "sunt in Duis sit nulla" } } ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "cant", "severity": "notices" }, "_value": "k" }, "action": "create" }, "regularErrors": { "variables": { "D": [ { "itxp": { "QGzeiQ": "officia occaecat", "EHYekB": "ea enim in tempor dolor", "vpgCKXojEBl": "reprehenderit dolor consequat adipisicing aliquip", "JMJl": "amet", "ArzVSphOSX": "Excepteur" } } ] }, "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: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": "PtGoBWLW", "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" ] } }