KVM - Dynamically set Map Identifier Name from a variable in KVM Policy

Not applicable

Hi,

I would like to pass the name of the KVM dynamically is it possible?

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <KeyValueMapOperations async="false" continueOnError="false" enabled="true" name="KVM.EncryptedDataStore.GetValueByKey" mapIdentifier="{kvm.encryptedDataStore}">


My scenario

Im using KVM for Spike Arrest settings...I would like to maintain a Common KVM and a proxy specific KVM where I can overwrite the values I have set in my Common KVM...hence from the proxy I would like to pass the KVM name and use that in the KVM Get Operation

Thanks

0 1 729
1 REPLY 1

Hi @Deepa

Its not possible.

Why not use one KVM where you have all the configurations? Why not use some prefix to differentiate if they are common or very specific ones. For example

common.spikeArrest
apiProxy1.spikeArrest
apiProxy2.spikeArrest
....

Using this pattern, you can set a flow variable and use that to fetch the value using the GET operation within the KVM policy.