Management API -- get policy type by name

I am looking for management API to get policy type for a given policy name in a proxy – is there one? I am trying to avoid fetching the whole policy contents to identify the type. Thanks in advance.

@Vijay Govind ,

You can use Get a policy for an API proxy revision management API to fetch details of policy for given proxy revision by policy name. You need to parse XML to get policy type. The first root element name of above proxy xml gives you policy type.

You can create a proxy for management API in Apigee Edge which parses XML & changes the response to just proxy type & use same moving forward. Keep us posted if you have any queries.

That’s what I am doing at the moment. I thought I could use an API directly to get the policy type by name – I understand it’s not available. Thanks for your response and clarification.

@Vijay Govind , Yes , It’s not available, but you can build one easily using Apigee Edge platform by proxying management APIs. Let us know if you need any help in building one.