Can I make policies reusable?

Not applicable

So the scenario is like this.

I want to create many policies whichI can reuse multiple times in multiple API proxies if the logic is same ( don't want to create same policy logic in many API). It is like writing helper class once and use as many times as you want.

Can I do this in edge? or would i be creating same policy again in all API proxies which share the same logic?

Regards,

Rahul

Solved Solved
0 3 690
1 ACCEPTED SOLUTION

Dear @Rahul.Dubey,

You can probably do one of this:

a) Copy and paste the required Policies to your other proxies

b) Have multiple Proxy/Target EndPoints in a single API that can make use of the same policies

In addition to this, the following links/webcast has some more suggestions on reusing policies across proxies. please go through them.

Thanks,

Amar

View solution in original post

3 REPLIES 3

Dear @Rahul.Dubey,

You can probably do one of this:

a) Copy and paste the required Policies to your other proxies

b) Have multiple Proxy/Target EndPoints in a single API that can make use of the same policies

In addition to this, the following links/webcast has some more suggestions on reusing policies across proxies. please go through them.

Thanks,

Amar

Not applicable

@Rahul.Debey, there is concept of Shared Flow in APIGEE. You can use it for policy reuse.

@Rahul.Dubey
1. Use shared flows
2. Move policies to common, so you don't have to code for the same policy but can import using #policy-name#
3. Spin up a new poxy endpoint the same proxy.