Summary
Translate Smart Template to Attribute Paths
Description
Translate Smart Template to Attribute Paths
Route
POST /smart_template/st/to/apath
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
instance_data |
object |
yes |
Smart Template Instance |
Copied to Clipboard
{
"instance_data": {
"variables": {
"PJS": [
{
"gRzPBEqPgt": {
"mINOEKTV": "qui consectetur non",
"aOiv": "tempor",
"ijicfFNAEzQ": "deserunt sint commodo minim",
"YvRGhFoq": "sed sint ut",
"PyiFSTVX": "ad officia et"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "error"
},
"_value": "B"
},
"action": "create"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"instance_data": {
"$ref": "smartTemplateInstance"
}
},
"required": [
"instance_data"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
apaths |
array |
Attribute Paths |
Copied to Clipboard
[
"/ncs:devices/ncs:device[ncs:ncs:name='os']/ncs:config/ios:hostname itential.com"
]
Copied to Clipboard
{
"type": "array",
"items": {
"type": "string",
"enum": [
"/ncs:devices/ncs:device[ncs:ncs:name='os']/ncs:config/ios:hostname itential.com",
"/ncs:devices/ncs:device[ncs:ncs:name='os']/ncs:name"
]
}
}