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": "1",
"maxLength": "4",
"default": true,
"direction": "vertical",
"required": false,
"enforce": true,
"hidden": true
},
"id": "labore est sit 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"
}
},
{
"type": "service_model",
"id": {
"name": "/ncs:services/test_devices:service_name"
}
}
],
"_id": "fee794f0-973f-dbad-3001-2fdf0551d029",
"groups": [
"e255cf7e95a8eab654a58394",
"f8d662b2cefde52f9323a98a"
],
"created": "1991-02-09T16:20:41.264Z",
"created_by": "8d96203f5874cb2aae5c636b",
"last_updated": "1947-01-19T19:39:53.287Z",
"last_updated_by": "ffe9f0b043370b69db704935",
"tags": [
"officia amet",
"esse aliqua voluptate adipisicing",
"elit"
]
}