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": {
"JV": [
{
"Gzfsf": {
"tNqqdxvtOT": "in",
"bJkqQ": "mollit eiusmod do proident",
"ImqjUyqhUg": "ullamco labore enim",
"OUQkj": "amet ex adipisicing esse sed",
"yIZPJvW": "fugiat non aliqua culpa"
}
}
]
},
"faml": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "must",
"severity": "error"
}
},
"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": "UeWxj",
"data": {
"action": "update",
"success": true
}
},
{
"host": "pDkOPRxb",
"data": {
"action": "update",
"success": true
}
},
{
"host": "qnFg",
"data": {
"action": "update",
"success": false
}
}
]
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"
]
}
}