Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

apigee edge to x or == > virtualhosts routing

How can I differentiate between private and public connections in Apigee X? In Apigee Edge, we used Virtual Hosts, but I understand that Apigee X utilizes env groups and environments instead. How can I configure these to route traffic based on whether it's public or private, and manage authentication policies accordingly?

to  differentiate it inside an api proxy for condition testing like this for example: 

<Step>
<Condition>!(virtualhost.name == "private-virtual-host")</Condition>
<FaultRules/>
<Name>SHF-Verify-JWT</Name>
</Step>

 

0 3 101
3 REPLIES 3

Hi @alazam - you could use environment.name, or check out all flow variables here. Environment group name is not yet available AFAIK, but should be coming as well at some point. 

Hi @tyayers,

The main goal is to differentiate traffic based on environment groups, correct? Does this mean we need to deploy the API proxy twice to implement the necessary logic for both public and private access?

Additionally, to distinguish between the two environment groups, should I configure two separate load balancers one for private access and another for public access and then associate them with their respective environment groups?

up