Summary
Translate FAML to Smart Template
Description
Translate FAML object to Smart Template
Route
POST /smart_template/phcfg/to/st
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
name |
string |
yes |
Name of the FAML object |
phcfg |
object |
yes |
FAML object |
Copied to Clipboard
{
"name": "LnRHSgrb",
"phcfg": {
"_attr": {
"type": "keyword",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "must",
"severity": "notices"
}
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
template |
object |
Smart Template object |
Copied to Clipboard
{
"form": {
"name": "Form 123",
"children": [
{
"properties": {
"type": "leafref",
"path": "/ncs:devices/ncs:device/ncs:name",
"min": "1",
"max": "4",
"minLength": null,
"maxLength": null,
"default": false,
"direction": "vertical",
"required": false,
"enforce": false,
"hidden": false
},
"id": "mollit cillum in pariatur",
"type": "container",
"element": "{\"type\":\"service_model\",\"id\":{\"name\":\"/ncs:services/devices:stringified_json\"}",
"name": "vlan_id_123",
"display_name": "vlan",
"source_type": "service_model",
"source": "/ncs:services/abc_devices:ios.device",
"key": "service.vlanid"
}
],
"elements": [
{
"type": "service_model",
"id": {
"name": "/ncs:services/test_devices:service_name"
}
},
{
"type": "service_model",
"id": {
"name": "/ncs:services/test_devices:service_name"
}
},
{
"type": "service_model",
"id": {
"name": "/ncs:services/test_devices:service_name"
}
}
],
"_id": "db87785a-5acc-984a-2903-8d6f8fae3a88",
"groups": [
"f0e7c7a6932aca70d642b067",
"d44144b3a689ba7c732b3f8a",
"71cd16b42ea48acc62521dd3",
"da164166a962da0c9d845ceb"
],
"created": "2021-01-15T14:17:38.311Z",
"created_by": "274f46a930c3c6e3c1c87f7d",
"last_updated": "1999-04-11T05:27:56.262Z",
"last_updated_by": "4cfa9b0273503a4e0d1dc8e5",
"tags": [
"exercitation sit sed tempor nisi",
"dolor nulla ex",
"labore laboris deserunt mollit",
"Ut",
"exercitation elit ullamco"
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "must",
"severity": "warning"
}
}
}