How to access TargetServer configuration from JS callout?

Not applicable

My company has setup a common load balancer target server setup with mutual SSL and stuff to our enterprise target endpoint. Right now it is only being used by the XML configuration in the proxy. Is there a way to retrieve that load balancer within a Javascript Callout policy and use it with the httpClient API?

For example, we currently reference it by:

<HTTPTargetConnection>

<LoadBalancer>

<Server name="apigwrouter"/>

</LoadBalancer>

<Path>/apigwrouter</Path>

</HTTPTargetConnection>

Is there a comparable strategy for using the same named server from within the JS Callout?

0 3 1,694
3 REPLIES 3

Ha.. I just spent awhile updating the question and you answered it before I submitted. Thanks for the quick response!

You can *simulate* the behavior, by invoking the same HOST and URL as used in the TargetServer definition. But there's no good way to read the details of the TargetServer definition within the JS Callout.

You can find the more details in the below link.

https://community.apigee.com/questions/23928/get-target-host-details-when-using-targetserver-co.html