Target End points

i have hundreds of the target endpoints defined for example :

1. http://10.1.123:8090/customer/getinfo

2.http://10.1.123:8090/customer/getId

3. http://10.1.123:8090/customer/getaddress

now I want to change this string 10.1.123:8090 to the new IP and port. I do not want to waste my time to change this IP one by one for each target endpoint. Is there any way to change this at once? I am new to APIGEE if someone can guide me I will be grateful to you. Regards Abdul Saboor @abdulsaboor

0 1 68
1 REPLY 1

@abdulsaboor,

Where have you defined these target ip addresses? Is it in the API proxy or is it part of the environment target server configuration?

I am assuming its part of your API proxy code looking at the paths defined, one option would be to export the API proxy bundle and then do a find replace of the IP in the XML file.

A second option would be to use replacement tokens in maven and rewrite the ip addresses when you build and deploy the API proxy.

A good practice would be to use a target server configuration where you define the target host and port in the target server for each environment. That way you dont need to modify your code when you deploy it to different environments/if the bakend server ip/port changes