Summary
Publish a Smart Template
Description
Publish a Smart Template
Route
POST /smart_template/st/publish
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
template_name |
string |
yes |
Smart Template Name |
provider |
string |
yes |
Name of the provider |
instance_data |
object |
yes |
Smart Template Instance |
Copied to Clipboard
{
"template_name": "vQDY",
"provider": "D",
"instance_data": {
"variables": {
"PLxkBoJX": [
{
"AZQi": {
"OpwwZt": "nulla in laborum ipsum",
"b": "ut laborum dolore dolor",
"MxQVPLyXd": "minim cupidatat dolore id",
"sNhuP": "Lorem eu",
"FSDaIh": "velit ut incididunt fugiat"
}
}
]
},
"faml": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "must",
"severity": "error"
},
"_value": "S"
},
"action": "create"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"template_name": {
"type": "string",
"pattern": "[A-Za-z]+"
},
"provider": {
"type": "string",
"pattern": "[A-Za-z]+"
},
"instance_data": {
"$ref": "smartTemplateInstance"
}
},
"required": [
"template_name",
"provider",
"instance_data"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
status |
object |
NSO Status |
Copied to Clipboard
[
{
"host": "VsN",
"data": {
"action": "update",
"success": true
}
},
{
"host": "derJImbyvB",
"data": {
"action": "update",
"success": true
}
}
]
Copied to Clipboard
{
"type": "array",
"description": "Array of results",
"items": {
"type": "object",
"properties": {
"host": {
"type": "string",
"pattern": "[A-Za-z]+"
},
"data": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"update"
]
},
"success": {
"type": "boolean"
}
},
"required": [
"action",
"success"
]
}
},
"required": [
"host",
"data"
]
}
}