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": "vfDJnSFtn",
"provider": "RTOmTgapFm",
"instance_data": {
"variables": {
"XccxZbJ": [
{
"tgsUowGh": {
"PrKtTH": "minim pariatur in",
"k": "ut sed consectetur",
"ie": "dolor exercitation irure eiusmod",
"wKEXBmHLGbs": "occaecat culpa",
"ZXSfOudybl": "consequat in dolor proident"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "error"
},
"_value": "R"
},
"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": "LeavzTlsoxZ",
"data": {
"action": "update",
"success": false
}
},
{
"host": "MdbS",
"data": {
"action": "update",
"success": false
}
},
{
"host": "iVzZToaMqP",
"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"
]
}
}