The system reads gateway endpoints from the
<JAVA<APIM_HOME>/Repositoryrepository/conf/api-manager.xmlfile. When there are multiple gateway environments defined, it picks the gateway endpoint of the production environment. You can define both HTTP and HTTPS gateway endpoints as follows:
Code Block language xml
If both types of endpoints are defined, the HTTPS endpoint will be picked as the server endpoint.
When creating (or updating) Failover endpoints through the Publisher UI (in the Implement tab), you need to go into the Advanced Options of each endpoint and specify a set of Error Codes for the endpoint to fail over on and take off the Initial Duration by setting its value to -1.