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": "4",
"default": -95616373.2801127,
"direction": "vertical",
"required": true,
"enforce": false,
"hidden": false
},
"id": "ad dolor non sunt 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": "service.vlanid"
},
{
"properties": {
"type": "leafref",
"path": "/ncs:devices/ncs:device/ncs:name",
"min": "1",
"max": null,
"minLength": "1",
"maxLength": null,
"default": true,
"direction": "vertical",
"required": true,
"enforce": true,
"hidden": false
},
"id": "incididunt",
"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": "f2069baa-cf7a-5623-b4ee-9f7d04944cf6",
"groups": [
"e06433577a838a45f48620d2",
"06eb9e6a5c09a78cad449cfa"
],
"created": "1978-05-14T07:34:47.435Z",
"created_by": "bf4e8ba5c983ba23aea970d6",
"last_updated": "1990-03-14T10:39:33.918Z",
"last_updated_by": "b0256df9321336f87f3c1e78",
"tags": [
"commodo",
"nisi veniam proident consequat id"
]
}