Detect virtual machine datacenter and VM ESXi Cluster

Hi all,
I’ve integrated BigFix with vCenter.
I see all ESXi hosts and VMs.
I saw a property that shows datacenter of ESXi host.
I would like to know how do I detect also datacenter of a VM and also the ESXi cluster this VM is hosted in?
what kind of query should it be?

this is a relevance for ESXi host datacenter:
if (exists name of datacenter AND name of datacenter != "") then name of datacenter else "Unknown"

and this is a relevance for VM ESXi host:
if exists host then name of host else "Unknown"

I guess there should be some integration in some way with these two queries, can you please help with that?

thanks ahead :slight_smile: