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": "3ede0745-b43b-67dd-9d42-ff828ef1e4bd"
}
]
}
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": "treeArista",
"_id": "SUCCESS"
},
{
"label": "treeJunos",
"_id": "SUCCESS"
},
{
"label": "treeCisco",
"_id": "SUCCESS"
},
{
"label": "treeArista",
"_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"
]
}
}