Summary
Provision a Smart Template
Description
Provision a Smart Template
Route
POST /smart_template/st/provision
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
instance_data |
object |
yes |
Smart Template Instance |
Copied to Clipboard
{
"instance_data": {
"variables": {
"tJ": [
{
"EGtrUKs": {
"jf": "sed dolore officia cupidatat enim",
"WBx": "labore dolore consequat nisi dolor",
"GUKYOLYvtY": "cillum laboris adipisicing quis eu",
"V": "dolore Duis incididunt do cillum",
"FRctqx": "in tempor esse consequat nisi"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "error"
},
"_value": "z"
},
"action": "create"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"instance_data": {
"$ref": "smartTemplateInstance"
}
},
"required": [
"instance_data"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
status |
object |
NSO Status |
Copied to Clipboard
[
{
"host": "wocenFcdzN",
"data": {
"action": "update",
"success": true
}
},
{
"host": "haDSkTy",
"data": {
"action": "update",
"success": false
}
},
{
"host": "XCFyVMjntX",
"data": {
"action": "update",
"success": true
}
}
]
Copied to Clipboard
{
"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"
]
}
}