26 Sep 2024 06:34 PM - last edited on 27 Sep 2024 07:57 AM by MaciejNeumann
The default behavior when you have a management zone prior to adding these rules is to not show the vmware section.
By adding these management zone entity selector rules it will add VMWare to the management zone.
type("vmware:virtualmachine"),fromrelationship.isSameAs(type("host"),tag("TagKey1:Value1"),tag("TagKey2:Value2"))
type(vmware:vcenter),toRelationship.isChildOf(type(vmware:datacenter),toRelationship.isChildOf(type(vmware:cluster), toRelationship.runsOn(type(vmware:host), toRelationship.runsOn(type(vmware:virtualmachine), fromRelationship.isSameAs(type(HOST), tag("TagKey1:Value1"), tag("TagKey2:Value2"))))))
type(vmware:host),toRelationships.runsOn(type(vmware:virtualmachine),fromrelationship.isSameAs(type("host"),tag("TagKey1:Value1"), tag("TagKey2:Value2")))
type(vmware:cluster), toRelationship.runsOn(type(vmware:host), toRelationship.runsOn(type(vmware:virtualmachine), fromRelationship.isSameAs(type(HOST), tag("TagKey1:Value1"), tag("TagKey2:Value2"))))
type(vmware:datacenter), toRelationship.isChildOf(type(vmware:cluster), toRelationship.runsOn(type(vmware:host), toRelationship.runsOn(type(vmware:virtualmachine), fromRelationship.isSameAs(type(HOST), tag("TagKey1:Value1"), tag("TagKey2:Value2")))))
type("vmware:virtualmachine"),fromrelationship.isSameAs(type("host"),tag("TagKey2:Value2"),tag("TagKey2:Value2"))
type(vmware:cluster), toRelationship.runsOn(type(vmware:host), toRelationship.runsOn(type(vmware:virtualmachine), fromRelationship.isSameAs(type(HOST), tag("TagKey2:Value2"), tag("TagKey2:Value2"))))
type(vmware:datacenter), toRelationship.isChildOf(type(vmware:cluster), toRelationship.runsOn(type(vmware:host), toRelationship.runsOn(type(vmware:virtualmachine), fromRelationship.isSameAs(type(HOST), tag("TagKey2:Value2"), tag("TagKey2:Value2")))))