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": "253ee707-c19f-7194-098a-48c688558141",
"nodeid": "b31a9264-9625-61c0-04f6-4362d643f92b"
}
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
[
"iosxr0",
"ios0",
"arista0",
"ios0",
"iosxr0"
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceNames"
},
"minItems": 1
}