@dchiesa1 @Siddharth Barahalikar
I am new to Apigee. Can you please help me how to configure target connection in the service call out policy for making a similar curl call mentioned below? how to configure the proxy server information in the http targetconnection?
APIGEE -->proxyserver-->targetendpoint
Service call out policy snippet:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout async="false" continueOnError="false" enabled="true" name="SC-RetrieveMicrosoftKeys">
<DisplayName>SC-RetrieveMicrosoftKeys</DisplayName>
<Properties/>
<Request clearPayload="true" variable="myRequest">
<Set>
<Verb>GET</Verb>
</Set>
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables>
</Request>
<Response>msKeys</Response>
<HTTPTargetConnection>
<Properties>
<Property name="use.proxy">true</Property>
<Property name="HTTPClient.proxy.type">HTTPS</Property>
<Property name="HTTPClient.proxy.host">testproxy.abc.com</Property>
<Property name="HTTPClient.proxy.port">8080</Property>
</Properties>
<URL>https://login.microsoftonline.com/common/discovery/keys</URL>
</HTTPTargetConnection>
</ServiceCallout
eg:curl -X GET --proxy https://testproxy.abc .com:8080 -v https://login.microsoftonline.com/common/discovery/keys
It depends on which version of Apigee you are using. For example, for Hybrid 1.7, you would refer here. For other versions, consult the documentation for that version.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |