Summary
Apply Templates to Devices
Description
Apply one or more templates to one or more devices with zero or more variables
Route
No Northbound API Available
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
templates |
array |
yes |
List of template request objects |
options |
object |
yes |
NSO NETCONF transaction options |
Copied to Clipboard
{
"templates": [
{
"device": "qui do",
"template": "Duis deserunt exercitation",
"variables": {
"AQdkdQncODD": "in non id"
}
},
{
"device": "Lorem veniam sit",
"template": "Ut dolor culpa quis",
"variables": {
"JmkNDj": false
}
},
{
"device": "consequat non in",
"template": "sit tempor ad mollit",
"variables": {
"fyhPdyZ": "veniam ea"
}
},
{
"device": "non pariatur ea mollit dolor",
"template": "mollit",
"variables": {
"jFtMA": 93073784.17946985
}
},
{
"device": "exercitation labore",
"template": "nisi laborum exercitation",
"variables": {
"u": "incididunt nisi"
}
}
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"templates": {
"title": "templates",
"type": "array",
"$ref": "applyTemplatesInput"
},
"options": {
"title": "options",
"type": "object",
"$ref": "netConfOptions"
}
},
"required": [
"templates",
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
Return result of applying device templates |
Copied to Clipboard
{
"result": "ok",
"success": true
}
Copied to Clipboard
{
"properties": {
"result": {
"title": "Result",
"type": "string",
"examples": [
"ok"
]
},
"success": {
"title": "Success",
"type": "boolean"
},
"dryrun": {
"type": "object",
"title": "DryRun",
"schema": {
"title": "Device Dry Runs",
"type": "object",
"$ref": "applyTemplatesInput#/definitions/keyValueMap"
}
}
},
"required": [
"result",
"success"
]
}