We want to write a generic utility API that will take the KVM (MapIdentifier) name along with entry name and its NEW entry value as request payload. API Proxy will extract that info using the assignmessage policy and assign it to variables used in the keyvaluemap operations policy as below -
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <KeyValueMapOperations name="RefreshKVM" mapIdentifier="SomeValidMap"> <Scope>environment</Scope> <Put override="true"> <Key> <Parameter ref="somekeyvar"/> </Key> <Value ref="somevaluevar"/> </Put> <ExpiryTimeInSecs>1</ExpiryTimeInSecs> </KeyValueMapOperations>
Is there a way to set to <mapIdentifier ref="somemapvar" /> as a variable ?