Summary
Rename a leaf
Description
Update the label of a leaf.
Route
POST /golden_config/renameLeaf
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
| Name |
Type |
Required |
Description |
| label |
string |
yes |
New label. |
| tree |
string |
yes |
Tree's ID. |
| nodeid |
string |
yes |
Node's ID. |
Copied to Clipboard
{
"label": "nodeWest",
"tree": "47462a13-7556-b84e-cf22-1e2a6d9797bf",
"nodeid": "c1969f59-7328-0fa1-8f49-66d91f34b355"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"label": {
"type": "string",
"examples": [
"nodeNorth",
"nodeSouth",
"nodeEast",
"nodeWest"
]
},
"tree": {
"$ref": "IDType"
},
"nodeid": {
"$ref": "IDType"
}
},
"required": [
"label",
"tree",
"nodeid"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| data |
array |
Device names in the Node. |
Copied to Clipboard
[
"ios0",
"junos0",
"arista0",
"arista0"
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceNames"
},
"minItems": 1
}