Starting from VMware Telco Cloud Automation version 2.1, the process for deleting domains has changed.
Previous Behavior
Previously, to delete a domain you had to remove the domain definition from the domains
list. And at the back-end, VMware Telco Cloud Automation deleted the domain.
For example, the following code snippet is a sample cloud spec file with two domains - test1
and test2
.
{ "domains": [ { "name": "test1", ... }, { "name": "test2", ... } ], "settings": { ... }, "appliances": [ ... ], "images": { ... } }
To delete test1
, you had to modify this cloud spec file by removing test1
from it.
{ "domains": [ { "name": "test2", ... } ], "settings": { ... }, "appliances": [ ... ], "images": { ... } }
Current Behavior
Now, to delete a domain you can add a list of strings (names of the domains you need to delete) to the deleteDomains
field in the cloud spec file. For example, deleteDomains" : ["cdc1", "rdc1"]
.
It is optional to include or exclude the domain to be deleted in the domains
list. The following code snippet is an example for the new behavior. We provide test1
in deleteDomains
list to delete that domain.
{ "domains": [ { "name": "test1", ... }, { "name": "test2", ... } ], "settings": { ... }, "appliances": [ ... ], "images": { ... }, "deleteDomains": ["test1"] }