timeout in Apigee Target endpoint using HTTPTargtConnection Properties

Hi all,

Is their any way to dynamically set these properties values per environment ?

<HTTPTargetConnection>

<Properties>

<Property name="connect.timeout.millis">30000</Property>

<Property name="io.time out.millis">30000</Property>

</Properties>

<URL>http://www.apigee.com</URL> </HTTPTargetConnection>

0 2 1,353
2 REPLIES 2

According to the docs:
Property values can only be literals. You cannot set values using variables.

The only solution I see would be to create multiple targetEndpoints using a routerule based on environment.

<RouteRule name="MyRoute">  
	<Condition>environment.name === 'dev'</Condition>
	<TargetEndpoint>TargetEndpoint1</TargetEndpoint>
</RouteRule>

Thank you Reinier. It helps