Summary
applyTemplates Task
Description
Applies an array of template/device pairings. Allows a user to include a key/value map of variables. Also supports NSO transaction options.
Route
POST /nso_manager/applyTemplates
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
adapterId |
string |
yes |
ID of the adapter against which the action is executed. |
templates |
array |
yes |
list of template request objects |
options |
object |
yes |
NSO NETCONF transaction options |
Copied to Clipboard
{
"adapterId": "sample adapterId",
"templates": [
{
"device": "qui eu do",
"template": "officia in velit",
"variables": {
"OV": false
}
},
{
"device": "fugiat sed exercitation",
"template": "ut est culpa",
"variables": {
"cKHJhk": true
}
},
{
"device": "Duis in sed",
"template": "culpa sed",
"variables": {
"dKX": true
}
},
{
"device": "officia do ullamco incididunt",
"template": "exercitation",
"variables": {
"Up": true
}
},
{
"device": "sint laborum laboris do",
"template": "aliquip aliqua reprehenderit",
"variables": {
"bnbi": -86320040.955483
}
}
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"adapterId": {
"$ref": "inputAdapterId"
},
"templates": {
"$ref": "applyTemplatesInput"
},
"options": {
"$ref": "netConfOptions"
}
},
"required": [
"adapterId",
"templates",
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
status of the execution |
Copied to Clipboard
{
"result": "ok",
"success": true
}
Copied to Clipboard
{
"properties": {
"result": {
"title": "Result",
"type": "string",
"examples": [
"ok"
]
},
"success": {
"title": "Success",
"type": "boolean"
}
}
}