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": {
"ivqjyaWSa": [
{
"beYafm": {
"IouL": "qui ea adipisicing",
"oRXmuZAcFq": "ex est",
"KAadax": "et exercitation dolore veniam cupidatat",
"MChXVLf": "aliquip cillum consequat",
"CEvLtHyi": "nulla"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "must",
"severity": "warning"
},
"_value": "f"
},
"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": "mIJBGPVMKrA",
"data": {
"action": "update",
"success": false
}
},
{
"host": "RQuLidHSZh",
"data": {
"action": "update",
"success": false
}
},
{
"host": "lcLq",
"data": {
"action": "update",
"success": false
}
},
{
"host": "TYlNQCiZkD",
"data": {
"action": "update",
"success": true
}
},
{
"host": "axMrlvX",
"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"
]
}
}