Common policy in multiple TargetEndpoints

I have an apigee proxy called A.

In this apigee proxy i have 4 target endpoints called T1,T2,T3,T4

Now i need to add a common policy in preflow of all these target endpoints. Right now i created one policy and added it in all 4 target endpoints seperately. Is there any way that i can add in one place and it should reflect in all 4 target endpoints preflow?

Please help me.

0 2 64
2 REPLIES 2

No, there is no way to do what you are imagining.

If you have distinct targetendpoints then you need to add the policy independently to each target endpoint. You're doing it correctly.

Not applicable

If there is no mandatory to add in target endpoint preflow, you can assign the policy to proxy endpoint preflow. You can also add to pre target flowhook with the condition as proxy name as your proxy.

If there is a dependency on the target endpoint preflow, then I don't think any other option.

If more number of policies are there you can add to the shared flow and use flow callout.