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

Dynamically changing virtual host in the apiproxy default.xml file

dkumar
New Member

Hi all,

I am stuck at one point and need help with that. We have environment-specific virtual hosts configured in Apigee. I have created CI/CD pipeline using Maven to deploy apiproxy bundle. How can we achieve virtual host name substitution on fly through maven configuration?

For example: In the maven run if I set DEV profile then it should pick dev specific virtual host name and replace the default virtual host with dev.org_name.com. Similary, if I select QA profile then it should set qa.org_name.com on the fly.

Requirement is exactly similar to this:

https://community.apigee.com/questions/29030/virtual-host-configuration-by-environment.html

But I am trying to achieve it through CI/CD using Maven.

Thank you

Regards,

Dwiz

1 1 557
1 REPLY 1