Is there a way to get list of attached policies for a given proxy revision? I need to find shared flow dependent proxies for some operational requirement. I followed steps mentioned in this post - https://community.apigee.com/questions/64994/how-to-check-for-shared-flow-dependency-deployment.html, but it fails in one senario.
Following are the Management calls used for this requirement -
1. List the API proxies for the environment. This will have proxy and deployed revisions - https://apidocs.apigee.com/management/apis/get/organizations/%7Borg_name%7D/environments/%7Benv_name...
2. List Policies per revision - https://apidocs.apigee.com/management/apis/get/organizations/%7Borg_name%7D/apis/%7Bapi_name%7D/revi...
3. Read Policy Details & check if the policy is flow callout and uses given shared flow - https://apidocs.apigee.com/management/apis/get/organizations/%7Borg_name%7D/apis/%7Bapi_name%7D/revi...
Here the second call returns all the policies including detached or unused policies. In some proxies, the Flow Callout policy is exists but not attached in any of flows.
Solved! Go to Solution.
tagging @srinandans@google for comment.
No, there is no better solution.
I suggest that you take care in depending on those APIs.
In Apigee hybrid and Apigee ng, the admin APIs support coarse-grained query and update, but not query of specific policies and their attachment points. The way you would interrogate this would be, to download the bundle and examine the bundle locally. That approach also works with the current gen Admin APIs.
That's what I would do if I were implementing this today.