Vsphere entity permissions entity_id for vcentre

Hi,

I’m using the Vsphere provider to deploy infrastructure to my ESXi cluster running ESXi 6.5 hosts and VCenter (VCSA) 6.7U3.

For my terraform deployment I create roles and a user for the infra to self manage itself.

For all roles I have been successful at creating the entity permissions resources to attach the role and user to the resource it will manage, however, I have not been able to determine how to how to attach a role for StorageProfile.View to the root Vcenter entity itself.

Can anyone advise? I see no way to get an ID for Vcenter, no data resource for Vcenter, only hosts etc.

SOLVED

The misunderstanding here is that vcenter is an object when really it is the root folder.