I am trying to make a management API call using service callout policy with in the proxy flow. This is to display all the endpoints configured with in the proxy. Below is the service callout policy which I have configured
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout async="false" continueOnError="false" enabled="true" name="SC_GetPath">
<DisplayName>SC_GetPath</DisplayName>
<Properties/>
<Request clearPayload="false" variable="myRequest">
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables>
<Set>
<Headers>
<Header name="Authorization">{UserAuthorization}</Header>
</Headers>
</Set>
</Request>
<Response>proxyResponse</Response>
<HTTPTargetConnection>
<Properties/>
<URL>http://{virtualhost.ip}:8080/v1/organizations/{organization.name}/apis/{apiproxy.name}/revisions/{apiproxy.revision}/proxies/{proxy.name}</URL>
</HTTPTargetConnection>
</ServiceCallout>
Is Apigee not recommending to use the management API calls with in the proxy flows? are these only for the Admin process?