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>
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
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |