my requirement is to update the reason phrase in ASSIGN MESSAGE policy after it is deployed. Assume we have a proxy which has ASSIGN MESSAGE POLICY in which some reason phrase is present. we are referring this policy in fualt rule, so no need of attaching it to any flow. Now i need an management api which connects to proxy and update assignmessage policy such that to edit/update the reason phrase /payload info in it.
If you are looking for a tool where you can change the policy in your local machine & deploy same to Apigee edge please take a look at apigeetool command line tool. You can run a command from local machine & deploy the proxy with changes to Apigee Edge.
Hi @venkat ch, another option for you to consider is persisting “Reason Phrases” in a Key Value Map (KVM) which can be updated via a public API (see link on KVM). Within your proxy you could have a KVM lookup policy which loads the desired Reason Phrase into a variable which is referenced in the Assign Message policy. I believe this is an alternative approach to achieve what you are looking to do.
Hi Prithal, i have followed the same approach suggested by you. I’m able to get the custom message from MAP to KVM operations policy, assigned to a variable.
But how to assign this flow variable to payload in assign message policy. Please let me know
We actually don’t doc that API because it is not officially maintained and should not be considered to be supported. Instead, you should use one of the other options described below.