Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

how to use service callout policy in apigee

hi folks

I have a simple API proxy named mock and the backend is associated with mock-target and uses some critical API token in this proxy 

so now I want to expose this proxy but there we can see all the policy attach to my proxy in trace section so I want to hide this 

and want only a single proxy with no policy 

means want to use proxy chaining but not using proxy chaining concept using service callout policy

thanks for any guidance or suggestion.

 

Solved Solved
0 11 3,316
1 ACCEPTED SOLUTION

@rohanjangid - I see you dont want to use Proxy chaining, so you want to give the full URL in the Service Callout policy. The policy will look something like this

 

<ServiceCallout name="ServiceCallout-Proxy1">
    <DisplayName>ServiceCallout-Proxy1</DisplayName>
    <Request variable="proxyRequest" />
    <Response>proxyResponse</Response>
    <Timeout>30000</Timeout>
    <HTTPTargetConnection>
      <URL>http://api-acme.com/v1/foo</URL>
    </HTTPTargetConnection>
</ServiceCallout>

View solution in original post

11 REPLIES 11