Hello,
I am developing a workflow in which the following tasks are taking place:
1. A datastore cluster is being created to house the new datastore
2. The DS cluster is configured.
3. A NFS Volume is mounted to all hosts
4. The newly mounted volume is added to the cluster.
So far the perfect case is working as intended with the above actions talking place, however I am attempting to implement a bit of error handling.
1. Check to see if the datastore exists and if so exiting from the request.
2. After confirming the datastore does not exist, ensuring the cluster does not already exist. (If it does simply use the existing)
The bolded section above is what I am struggling with I cant seem to find any means of retrieving existing datastore clusters in which I need to iterate through and check.
Could anyone point me in the direction of the API call in which could do this. When inspecting the parent "Folder" object there is no means retrieving these entities.
Thanks,