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": "b0d957da-6dfc-97ca-0da0-5c96984f362b", "form": { "name": "Form 123", "children": [ { "properties": { "type": "leafref", "path": "/ncs:devices/ncs:device/ncs:name", "min": null, "max": "4", "minLength": "1", "maxLength": "4", "default": -50352970.66220985, "direction": "vertical", "required": false, "enforce": false, "hidden": false }, "id": "ex ullamco dolor deserunt 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": null, "max": "4", "minLength": null, "maxLength": "4", "default": null, "direction": "vertical", "required": true, "enforce": false, "hidden": false }, "id": "laborum fugiat", "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": null, "maxLength": "4", "default": -13219979.212241516, "direction": "vertical", "required": true, "enforce": true, "hidden": false }, "id": "commodo laborum ullamco", "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": null, "max": "4", "minLength": null, "maxLength": null, "default": 97550388.74919385, "direction": "vertical", "required": false, "enforce": true, "hidden": true }, "id": "Excepteur nostrud irure", "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": null, "maxLength": null, "default": false, "direction": "vertical", "required": true, "enforce": false, "hidden": true }, "id": "adipisicing", "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": "937e6873-1f70-daec-893c-d9ebad8f94e4", "groups": [ "b834f98de0ce718e974e9f44" ], "created": "1986-02-08T10:18:22.342Z", "created_by": "15e16772017f2b20f3626853", "last_updated": "1981-04-08T00:26:32.309Z", "last_updated_by": "10c065944e2322658bfb0be2", "tags": [ "cupidatat amet", "officia deserunt do esse" ] }, "faml": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "must", "severity": "notices" }, "_keys": [ "DEnej", "qXavFu" ], "_children": [ { "g": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "notices" }, "_value": "f" } } ] }, "name": "gFNwnZAZ", "native": "interface GigabitEthernet 1", "os": "eos", "created": "1519696361218", "create_by": "nYmHIZRSh" }
{ "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" ] }