VMware Cloud Community
leowenluau
Contributor
Contributor

vro workflow to tell which tenant from vra call back

vRO workflow to tell which vRA tenant is triggering the workflow, how?

We have multiple vRA 8 Tenants, which has the same embedded vRO, is there a way or how the vRO workflow can tell which tenant has triggered the workflow? The reason is that the vRO workflow needs to call back vRA with reh REST API to get projects/subnets etc from vRA itself.

0 Kudos
3 Replies
xian_
Expert
Expert

System.getContext().getParameter(__metadata_orgId)

0 Kudos
leowenluau
Contributor
Contributor

System.getContext().getParameter("__metadata_orgId")  does get uuid but, how do I get which tenants it's from rather than not readable XXXX-XXXX-XXXX-XXXX ?

 

0 Kudos
xian_
Expert
Expert

If you want the name, you need to call back to vRA via REST API:

GET "/csp/gateway/am/api/orgs/" + orgId

The response will have the display name of the tenant.

You can either set up a REST endpoint in vRO, or on vra8.3/8.4 use the vRA plugin.

0 Kudos