Is there an API or some other way to list all proxies using a particular Shared flow?

Not applicable
 
0 1 133
1 REPLY 1

Not applicable

@karthik,

Well, there is no OOTB utility available. However, an API proxy can be built by invoking management APIs and string processing.

Steps are:

1.Find list of policies of latest revision of each proxy. One may need to make api calls first to find list of proxies and revisions of each proxy.

GET https://api.enterprise.apigee.com/v1/organizations/{org}/apis/{apiname}/revisions/{revision}/policie...

2. Find detail of each policy.

GET https://api.enterprise.apigee.com/v1/organizations/{org}/apis/{apiname}/revisions/{revision}/policie...

This proxy has FlowCallout policy if value of 'policyType' is "FlowCalloutBean".There will be another attribute ""sharedFlowBundle" of such policy and this will contain name of "Shared flow name"

{

"policyType": "FlowCalloutBean",

....

"name": "{policy name}",

"sharedFlowBundle": "{Shared flow name}"

}

This Shared flow name can be compared aganist the one in the context.

Note: All management APIs require basic authorization in the header.