0

Decomissioning Servers via SDK - Retrieving Child Objects

I'm working on some decommissioning automation and I am required to delete servers via Vedsdk when servers are deleted in our cloud provider.

 

If I attempt to delete a server that still has children, I get the following error:
\VED\Policy\Global\CloudEnablement-SM\Devices\Decommission\10.192.0.211

 

Via the GUI, I can just say "Delete all child objects" in the popup.

I assume I have to loop through child objects and delete those first, is there a way to get a list of child objects?

2 comments

Please sign in to leave a comment.