Summary
addDevicesToNode True
Description
Add a list of devices to a specific node.
Route
POST /golden_config/addDevice
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
| Name |
Type |
Required |
Description |
| devices |
array |
yes |
Device names. |
| treeName |
string |
yes |
Name of tree. |
| nodeName |
string |
yes |
Name of node to link devices. |
Copied to Clipboard
{
"devices": [
"iosxr0",
"ios0"
],
"treeName": "treeJunos",
"nodeName": "nodeSouth"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"devices": {
"type": "array",
"items": {
"$ref": "deviceNames"
},
"minItems": 1
},
"treeName": {
"type": "string",
"examples": [
"treeCisco",
"treeJunos",
"treeArista"
]
},
"nodeName": {
"type": "string",
"examples": [
"nodeNorth",
"nodeSouth",
"nodeEast",
"nodeWest"
]
}
},
"required": [
"devices",
"treeName",
"nodeName"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| data |
object |
Updated list of devices, it returns a string if it fails. |
Copied to Clipboard
[
"ios0",
"ios0",
"junos0",
"junos0",
"arista0"
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceNames"
},
"minItems": 1
}