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": {
"YFr": [
{
"HNUxVdC": {
"MCrP": "amet ullamco",
"PuoUjwdOtRg": "ad do cupidatat",
"ZqUhMj": "sed deserunt in ad",
"CLqZoECUy": "in nisi dolore",
"d": "irure in"
}
}
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "error"
},
"_keys": [
"GsgDDHh",
"p",
"uClPppfcsW"
],
"_children": [
{
"M": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "notices"
},
"_value": "W"
}
}
]
},
"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",
"/ncs:devices/ncs:device[ncs:ncs:name='os']/ncs:name",
"/ncs:devices/ncs:device[ncs:ncs:name='os']/ncs:config/ios:hostname itential.com",
"/ncs:devices/ncs:device[ncs:ncs:name='os']/ncs:name"
]
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"
]
}
}