Different target endpoints for different proxy deployments

I have an endpoint in 3 different environments

target dev: https://dev-env/some-path/endpoint-1

target test: https://test-env/some-path/endpoint-1

let's just say the proxies for my environment deployments are as following

apigee test: https://apigee-dev/endpoint-1

apigee prod: https://apigee/endpoint-1

How do I achieve -

dev apigee proxy to invoke dev target

test apigee proxy to invoke test target

prod apigee proxy to invoke prod target

Really appreciate the community support in this regard !

Thank you

0 1 195
1 REPLY 1

Hi Nikhil,

You may use Target Server per environment. In your proxy, you don't hard code the URL of your back-end anymore, but refer to the name of the Target Server. You have to use load balancing with one single Target Server, but mind this anti-pattern.

See also this article.

Good luck!