Hello,
We are trying to create multiple KVM entries using the apigee policy on apigee x (scoped at environment level) but when populating the values for each key it is duplicating and copying the last value to all the keys in the KVM. Below is the sample policy we are using:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<KeyValueMapOperations continueOnError="false" enabled="true" name="KVM-keyvaluemap" mapIdentifier="test-KVM">
<DisplayName>KVM-keyvaluemap</DisplayName>
<Properties/>
<Put override="true">
<Key>
<Parameter>
<Name>pathparam</Name>
</Parameter>
</Key>
<Value>/v1/user</Value>
</Put>
<Put override="true">
<Key>
<Parameter>
<Name>serviceId</Name>
</Parameter>
</Key>
<Value>1</Value>
</Put>
<Scope>environment</Scope>
</KeyValueMapOperations>
when we fetch the kvm for the above we get for both pathparam = 1 and serviceId=1. We tried setting the overide option to false and that also has similar behavior.
We also tried two different policies to update and add the entries to the same kvm but it has same behavior. Can someone tell what we are doing wrong or is it a known issue?