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": "nodeNorth",
"tree": "c2b4018f-00cf-f21d-df5f-26d2ebe50363",
"nodeid": "8b383a89-e29c-bef6-3da4-7fc82d8679d1"
}
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
[
"arista0",
"arista0",
"junos0",
"junos0",
"ios0"
]
Copied to Clipboard
{
"type": "array",
"items": {
"$ref": "deviceNames"
},
"minItems": 1
}