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": "nodeSouth",
"tree": "6985cc30-74fc-f241-84d7-d9cef6c512ea",
"nodeid": "e2431eb6-9968-330d-93c3-05f80b6851dd"
}
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
[
"junos0",
"iosxr0",
"ios0",
"arista0"
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceNames"
},
"minItems": 1
}