Summary
Get a smart template by ID
Description
Get a Smart Template using its ID
Route
GET /smart_template/id/:id
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
id | string | yes | Database ID for smart template |
null
{ "type": "object", "properties": {}, "required": [], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
smart_template | object | Smart Template Entity |
{ "_id": "0eace0a6-e54c-cb66-cc3d-d7254b9153d7", "form": { "name": "Form 123", "children": [ { "properties": { "type": "leafref", "path": "/ncs:devices/ncs:device/ncs:name", "min": null, "max": null, "minLength": null, "maxLength": null, "default": -87952222.9763014, "direction": "vertical", "required": true, "enforce": true, "hidden": false }, "id": "dolore", "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": "4", "default": 9293794.14706029, "direction": "vertical", "required": true, "enforce": false, "hidden": true }, "id": "Lorem laboris", "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" }, { "properties": { "type": "leafref", "path": "/ncs:devices/ncs:device/ncs:name", "min": "1", "max": "4", "minLength": null, "maxLength": null, "default": null, "direction": "vertical", "required": false, "enforce": true, "hidden": false }, "id": "laborum tempor anim eiusmod", "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": "4", "minLength": "1", "maxLength": null, "default": "dolore do officia", "direction": "vertical", "required": true, "enforce": true, "hidden": false }, "id": "consequat tempor ut Excepteur", "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": "4", "default": "tempor esse ad Lorem", "direction": "vertical", "required": false, "enforce": false, "hidden": false }, "id": "in 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": "52a6f0f3-b101-8776-da11-dad3343aab5e", "groups": [ "d45afd86aaa4a3f0ab372cae", "4b96dae6f338f0c7bc334f22", "2dcee4bf4e9f209b801efac2" ], "created": "2020-09-16T14:50:38.219Z", "created_by": "c0354e8135a02d0cd5de7526", "last_updated": "2006-06-06T16:06:38.078Z", "last_updated_by": "1bce12b6e14818e502bd1b25", "tags": [ "Excepteur anim Lorem dolor", "nisi consectetur Lorem", "et anim elit deserunt", "ea dolor" ] }, "faml": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ios", "condition": "cant", "severity": "notices" }, "_value": "k" }, "name": "apHztNeVHY", "native": "interface GigabitEthernet 1", "os": "eos", "created": "1586241362588", "create_by": "sSznsMOw" }
{ "type": "object", "properties": { "_id": { "type": "string", "pattern": "^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$" }, "form": { "$ref": "formDocument" }, "faml": { "oneOf": [ { "$ref": "famlObject#/definitions/famlLeaf" }, { "$ref": "famlObject#/definitions/famlContainer" }, { "$ref": "famlObject#/definitions/famlList" } ] }, "name": { "type": "string", "pattern": "[A-Za-z]+" }, "native": { "type": "string", "enum": [ "hostname itential", "interface GigabitEthernet 1" ] }, "os": { "type": "string", "enum": [ "cisco-ios, cisco-iosxr", "eos", "junos" ] }, "create_by": { "type": "string", "pattern": "[A-Za-z]+" }, "created": { "type": "string", "pattern": "1[1-9]{12}" } }, "required": [ "_id", "form", "faml", "name", "native", "os", "created_by", "created" ] }