Summary
Get a smart template by Name
Description
Get a smart template using its name
Route
GET /smart_template/name/:name
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
name |
string |
yes |
Name for smart template |
Copied to Clipboard
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
smart_template |
object |
Smart Template Entity |
Copied to Clipboard
{
"_id": "eee3a058-541e-a615-49b2-812d423cc8e1",
"form": {
"name": "Form 123",
"children": [
{
"properties": {
"type": "leafref",
"path": "/ncs:devices/ncs:device/ncs:name",
"min": "1",
"max": null,
"minLength": null,
"maxLength": "4",
"default": "labore irure",
"direction": "vertical",
"required": true,
"enforce": true,
"hidden": true
},
"id": "sint",
"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": null,
"minLength": null,
"maxLength": null,
"default": 91567110.16913417,
"direction": "vertical",
"required": true,
"enforce": true,
"hidden": false
},
"id": "laboris velit",
"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"
}
},
{
"type": "service_model",
"id": {
"name": "/ncs:services/test_devices:service_name"
}
},
{
"type": "service_model",
"id": {
"name": "/ncs:services/test_devices:service_name"
}
}
],
"_id": "91db0228-9955-542d-c1f6-37edce6dc7f1",
"groups": [
"67728044e468d8328a359b5b",
"8337b49929ac1f785268bc35",
"f4aaa971787e60047a407222"
],
"created": "2006-05-24T06:01:50.963Z",
"created_by": "691bd32694ab39179707a0da",
"last_updated": "1950-05-13T18:17:41.388Z",
"last_updated_by": "9a598d6e1112225631c64a77",
"tags": [
"dolore in consectetur cillum",
"sint in",
"irure culpa",
"enim dolor",
"qui laborum nulla"
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "notices"
},
"_value": "x"
},
"name": "cLxXgusQ",
"native": "interface GigabitEthernet 1",
"os": "cisco-ios, cisco-iosxr",
"created": "1748931319919",
"create_by": "fmwK"
}
Copied to Clipboard
{
"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"
]
}