Summary
apply at set of templates to a set of devices
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 |
The host that the action should be executed against. |
templates |
array |
yes |
list of template request objects |
options |
object |
yes |
NSO NETCONF transaction options |
Copied to Clipboard
{
"adapterId": "sample adapterId",
"templates": [
{
"device": "sit",
"template": "aute",
"variables": {
"grNxgQHWDtr": "sed"
}
},
{
"device": "in laborum ipsum aliqua",
"template": "enim ad incididunt",
"variables": {
"gOJOjIpPrjF": -45447518.07840672
}
},
{
"device": "do anim",
"template": "eiusmod dolor Lorem eu consectetur",
"variables": {
"dp": "nulla"
}
}
]
}
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"
}
}
}