Summary
Get a Smart Template form
Description
Get a Smart Template Form using its name
Route
GET /smart_template/form/name/:name
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
name |
string |
yes |
Name of the smart template object |
Copied to Clipboard
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
form |
object |
Form Entity |
Copied to Clipboard
{
"name": "Form 123",
"children": [
{
"properties": {
"type": "leafref",
"path": "/ncs:devices/ncs:device/ncs:name",
"min": "1",
"max": "4",
"minLength": null,
"maxLength": null,
"default": "Duis laborum do culpa",
"direction": "vertical",
"required": false,
"enforce": false,
"hidden": true
},
"id": "pariatur laboris veniam",
"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"
}
}
],
"_id": "d2f4d776-c67a-50e4-1cfb-545364861757",
"groups": [
"bc8f360542cd170f65225df6",
"15294b5d9e263eb88347831d",
"09241affafd08488e517d951",
"d64747ade0b34ddf8a8ffcd8"
],
"created": "1995-11-21T23:42:20.259Z",
"created_by": "27be755b16c890305aecf877",
"last_updated": "1957-04-30T20:09:43.682Z",
"last_updated_by": "8f9c5b66ba4db775876c738b",
"tags": [
"dolore commodo nostrud",
"adipisicing",
"in fugiat laborum enim",
"ad magna",
"ut do"
]
}