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": "8b76d69a-6936-178b-1d43-4c40c37fd4cb",
"form": {
"name": "Form 123",
"children": [
{
"properties": {
"type": "leafref",
"path": "/ncs:devices/ncs:device/ncs:name",
"min": "1",
"max": null,
"minLength": "1",
"maxLength": null,
"default": "eu veniam dolor sunt mollit",
"direction": "vertical",
"required": true,
"enforce": true,
"hidden": false
},
"id": "amet qui",
"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"
}
},
{
"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": "8229c37f-0c2c-d648-7648-ccfcf25140df",
"groups": [
"79e5e5b58b76aa648f2984a4"
],
"created": "1985-10-03T09:18:41.529Z",
"created_by": "f5b3cf04f7ea1ffd39637d65",
"last_updated": "1969-04-24T07:13:13.189Z",
"last_updated_by": "2070390f3f2b37e4d0c96298",
"tags": [
"laboris tempor magna mollit Duis",
"Duis do exercitation commodo",
"ut ad mollit cupidatat",
"Excepteur sed aute laboris",
"Ut commodo"
]
},
"faml": {
"_attr": {
"type": "leaf",
"ns": "http://tail-f.com/ns/config/1.0",
"prefix": "ios",
"condition": "cant",
"severity": "notices"
}
},
"name": "RjosSWwtTd",
"native": "interface GigabitEthernet 1",
"os": "cisco-ios, cisco-iosxr",
"created": "1768436188859",
"create_by": "mkke"
}
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"
]
}