Summary
Delete trees
Description
Delete multiple Golden Config Trees.
Route
POST /golden_config/deleteTrees
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
trees |
array |
yes |
List of trees to delete. |
Copied to Clipboard
{
"trees": [
{
"label": "treeJunos",
"_id": "5482ad5e-d0e1-f168-1727-b8393e86aadd"
},
{
"label": "treeJunos",
"_id": "4af81dd8-7f63-2259-f120-e5841a454a6e"
},
{
"label": "treeJunos",
"_id": "0f342013-c386-2886-2b8f-19b517eb29c0"
},
{
"label": "treeArista",
"_id": "ea1a350d-290b-d008-b12a-7199555d0f79"
}
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"trees": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"examples": [
"treeCisco",
"treeJunos",
"treeArista"
]
},
"_id": {
"$ref": "IDType"
}
},
"required": [
"label",
"_id"
]
}
}
},
"required": [
"trees"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
trees |
array |
List of tree names that were deleted |
Copied to Clipboard
[
{
"label": "treeJunos",
"_id": "SUCCESS"
}
]
Copied to Clipboard
{
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"examples": [
"treeCisco",
"treeJunos",
"treeArista"
]
},
"_id": {
"type": "string",
"enum": [
"SUCCESS"
]
}
},
"required": [
"label",
"status"
]
}
}