Given a host in a cluster, I want to be able to find any Host group rules that said host may be a member of. There's a post on the forum with an example but it doesn't work in vcenter 6.7. I know there's a function that takes a vm and returns some info but i'm not interested in vms, only hosts.
Does anyone have a way of getting this info? What I'm trying to do create a workflow to remove a host, do some other stuff and then re-add the host to the same cluster but i need to keep track of any rules said host was a member of so I can add it back.
This is the info i'm trying to pull:
Thanks