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": "8a6ad7b8-ccff-5357-9d73-4b816816762a",
"form": {
"name": "Form 123",
"children": [
{
"properties": {
"type": "leafref",
"path": "/ncs:devices/ncs:device/ncs:name",
"min": "1",
"max": "4",
"minLength": "1",
"maxLength": "4",
"default": "ut eiusmod in ad",
"direction": "vertical",
"required": false,
"enforce": false,
"hidden": false
},
"id": "occaecat Excepteur in pariatur",
"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"
}
}
],
"_id": "7d045f25-99fc-d9d5-245f-c1fe1e09689b",
"groups": [
"527755cf60d56126f358cfbb"
],
"created": "1993-12-05T05:01:59.779Z",
"created_by": "64457fc270e9bf9dc2782324",
"last_updated": "1965-11-06T15:33:59.712Z",
"last_updated_by": "8737a04dbf19bc4012418520",
"tags": [
"sit dolor enim pariatur aute",
"qui",
"pariatur nisi",
"aliquip aute"
]
},
"faml": {
"_attr": {
"type": "list",
"ns": "http://tail-f.com/ns/ncs",
"prefix": "ncs",
"condition": "must",
"severity": "notices"
},
"_value": "f"
},
"name": "yGGd",
"native": "hostname itential",
"os": "cisco-ios, cisco-iosxr",
"created": "1394442774631",
"create_by": "qgwwWCnGdi"
}
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"
]
}