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": { "IXgWq": [ { "lWndCY": { "lvXqT": "in do", "BilQCHmE": "deserunt cupidatat irure", "UAH": "ut enim occaecat veniam", "K": "Duis veniam in", "dMWSP": "eiusmod in" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "notices" }, "_value": "u" }, "action": "create" }, "regularErrors": { "variables": { "Vwh": [ { "fFrADJzcEi": { "HQkWvGmev": "ullamco sunt elit Ut", "NwHUonva": "irure pariatur sed", "I": "id proident ullamco pariatur nostrud", "cNTaJvcFQQH": "nulla et cupidatat tempor laborum", "HvVCFzHrmA": "velit sed Excepteur esse" } } ] }, "faml": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "warning" }, "_keys": [ "vaCVTo", "Ww", "qvkbaUzgz", "NhZzFsS" ], "_children": [ { "N": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "must", "severity": "notices" } } }, { "y": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "cant", "severity": "warning" }, "_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": { "h": [ { "P": { "pdE": "nulla nostrud", "yXfyJYSClLd": "magna ea eu", "KmiYOViOEJE": "ex officia irure voluptate", "gQovUj": "labore nostrud aliqua sunt elit", "kAdEjfgFaW": "elit proident" } } ] }, "faml": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "must", "severity": "notices" } }, "action": "create" }, "regularErrors": { "variables": { "UT": [ { "woK": { "DL": "elit cupidatat irure magna minim", "Giymdh": "pariatur Duis est", "kINgPFU": "mollit minim occaecat magna", "Mu": "qui laboris exercitation", "JHlZKOdARJ": "sint" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "must", "severity": "error" }, "_keys": [ "uAtdqGRb" ], "_children": [ { "I": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "must", "severity": "error" }, "_value": "v" } }, { "b": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "must", "severity": "notices" } } }, { "I": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "error" }, "_value": "e" } } ] }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:hostname" ], "action": "delete" } }, { "regexErrors": { "variables": { "YsrJOAK": [ { "aUMX": { "kbevLrFKMoo": "proident", "PAbut": "veniam sit do", "H": "ut velit tempor commodo", "kzTHdbRQQZH": "mollit ipsum", "lVjJdOB": "ut elit" } } ] }, "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "must", "severity": "error" } }, "action": "create" }, "regularErrors": { "variables": { "ZHy": [ { "sHiPLW": { "RxLlbgEMp": "sit", "jQhbXdx": "id sed in", "BqaTXh": "sint aliquip", "VfgVOUr": "Excepteur eu", "hrIlTK": "Lorem" } } ] }, "faml": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "must", "severity": "notices" }, "_value": "V" }, "action": "create" }, "deletionErrors": { "xpaths": [ "/ncs:devices/ncs:device[ncs:name='deviceName']/ncs:config/ios:interface/ios:Loopback[ios:name='0']" ], "action": "delete" } }, { "regexErrors": { "variables": { "EGxf": [ { "VXZp": { "wMoCwu": "ex proident ad", "kuHGXsAQuy": "Ut ea tempor aute dolor", "zY": "ex", "MSjESZH": "et dolor occaecat", "KuzXUIwRdk": "tempor" } } ] }, "faml": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "must", "severity": "notices" } }, "action": "create" }, "regularErrors": { "variables": { "bq": [ { "Q": { "fXEEXGIi": "dolor elit ex cupidatat ea", "XhqYrzcyks": "ad ut", "qNKBa": "nisi dolor", "xoPkoO": "cupidatat ut adipisicing ipsum", "BplKHYTkmP": "cillum nostrud nulla eiusmod" } } ] }, "faml": { "_attr": { "type": "leaf", "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: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": "UbCUiRL", "data": { "action": "update", "success": true } }, { "host": "oSURUIQhjr", "data": { "action": "update", "success": true } }, { "host": "ENEaabmGDCK", "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" ] } }