Summary
Get a smart template form
Description
Get a Smart Template Form using its ID
Route
GET /smart_template/form/id/:id
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
id |
string |
yes |
Database ID for smart template |
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": null,
"max": null,
"minLength": "1",
"maxLength": null,
"default": null,
"direction": "vertical",
"required": false,
"enforce": false,
"hidden": true
},
"id": "consequat sed",
"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"
},
{
"properties": {
"type": "leafref",
"path": "/ncs:devices/ncs:device/ncs:name",
"min": null,
"max": "4",
"minLength": "1",
"maxLength": "4",
"default": true,
"direction": "vertical",
"required": false,
"enforce": false,
"hidden": false
},
"id": "ut",
"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": "key545385c3-fc66-491b-bf6f-abc2214366dc"
}
],
"elements": [
{
"type": "service_model",
"id": {
"name": "/ncs:services/test_devices:service_name"
}
}
],
"_id": "8ded93e4-bd04-e2fd-3d07-a1f40d2345af",
"groups": [
"0d853c35486b918b372641ed",
"4a7af1ceed3951b54f7cf0a4",
"f2eaa20a49c0f84dfe0cb820"
],
"created": "2017-10-03T03:00:18.092Z",
"created_by": "50cc6ca3655848ed7e7558eb",
"last_updated": "1959-12-25T16:31:55.806Z",
"last_updated_by": "a7fa550fa1ec3900a8a26ccb",
"tags": [
"enim reprehenderit",
"elit adipisicing Lorem consectetur non",
"ut deserunt in et",
"nulla"
]
}