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": "4",
"default": null,
"direction": "vertical",
"required": false,
"enforce": true,
"hidden": false
},
"id": "do nisi deserunt eu voluptate",
"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"
}
}
],
"_id": "bba567bb-39c0-b4a3-c9cd-720690ca5854",
"groups": [
"4b28d78d68faf974e0061cbc",
"ab1af4476657ccedae41af9b",
"2b29e6ba71142511c3e74183"
],
"created": "1950-01-05T09:57:20.243Z",
"created_by": "4c69711ae46e1baecd041c11",
"last_updated": "2003-08-15T17:19:36.666Z",
"last_updated_by": "268d11a1c50b3705e9565c3b",
"tags": [
"culpa",
"nulla proident eu",
"veniam",
"ullamco ad ipsum enim magna",
"ullamco sed dolore nisi non"
]
}