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": "yTJsJsO",
"provider": "NhfNPWg",
"instance_data": {
"variables": {
"JBB": [
{
"fJtM": {
"AngxDOkkz": "sit",
"TpiQHAKVXXr": "reprehenderit anim",
"ZQ": "dolor mollit ex ullamco",
"EbJntOidI": "deserunt pariatur Lorem sunt adipisicing",
"zjVRWE": "dolore enim ut do"
}
}
]
},
"faml": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ios",
"condition": "must",
"severity": "warning"
}
},
"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": "EMaJdXOah",
"data": {
"action": "update",
"success": false
}
},
{
"host": "dz",
"data": {
"action": "update",
"success": false
}
}
]
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"
]
}
}