Create Shared Flow by Edge API?

The only way I see to create a shared flow using the Edge API is using a zip (https://apidocs.apigee.com/shared-flow-api/apis/post/organizations/%7Borg_name%7D/sharedflows)

Can we create shared flow by individually uploading policies instead of submitting a zip file to the Edge API?

0 2 128
2 REPLIES 2

You cannot create a shared flow by individually uploading policies. If you try to build a shared flow via the Edge UI you can appreciate that it's a lot like building an API proxy without an endpoint, so you have an asset that you can then reuse in your API proxies. This also means, you have a shared flow configuration with the ordering/sequence of your policies, and these may also be conditional.

If you're having issues building this zip for instance, and are using CI CD, you can leverage the apigee maven deploy plugin for your deployment and it includes building the zip

https://github.com/apigee/apigee-deploy-maven-plugin

I suppose you should be able to do the analogous action, like this:

https://community.apigee.com/answers/65448/view.html

The container name is "sharedflows" not "apis".

This will work today, but it probably will not work with next-gen SaaS, nor Apigee hybrid.