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": {
"gpaSkHfwwW": [
{
"RIxxbE": {
"fkEDFQaDEuq": "amet aliquip cillum",
"MaWfdBfXn": "consectetur nulla dolore Excepteur non",
"kWemmC": "anim in quis",
"hVJj": "ad laborum fugiat occaecat esse",
"LS": "anim sit est elit"
}
}
]
},
"faml": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "must",
"severity": "warning"
},
"_keys": [
"rWQGCX",
"IJB",
"to",
"faCnbOxEWQH"
],
"_children": [
{
"S": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ncs",
"condition": "cant",
"severity": "error"
},
"_value": "F"
}
},
{
"N": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "must",
"severity": "error"
},
"_value": "h"
}
}
]
},
"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": "uVkEVc",
"data": {
"action": "update",
"success": true
}
},
{
"host": "JjIHtbEP",
"data": {
"action": "update",
"success": true
}
},
{
"host": "Bz",
"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"
]
}
}