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": "ad sint ullamco dolor officia",
"template": "anim",
"variables": {
"Rcw": 83722592.5772123
}
},
{
"device": "incididunt ut quis et non",
"template": "veniam cupidatat",
"variables": {
"Y": 66626196.581562966
}
},
{
"device": "sunt enim",
"template": "ut eiusmod aliquip",
"variables": {
"IbA": -95883930.23605257
}
},
{
"device": "Excepteur sunt id",
"template": "elit dolore do ex",
"variables": {
"EcvzwwnJgL": "sint amet voluptate fugiat in"
}
},
{
"device": "non sit enim exercitation esse",
"template": "Duis",
"variables": {
"iM": -58744653.137151204
}
}
]
}
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": false
}
Copied to Clipboard
{
"properties": {
"result": {
"title": "Result",
"type": "string",
"examples": [
"ok"
]
},
"success": {
"title": "Success",
"type": "boolean"
}
}
}