apigee-access provides a way for KVMs to be accessed under node.js via javascript:
var kvm = apigee.getKeyValueMap('kvm_name', 'scope');
Are there any similar functionalities available from within a javascript policy? In my usage scenario I'd like to access arbitrarily defined keys from a known KVM.
Solved! Go to Solution.
No , there is no way to read a KVM value from within a JavaScript policy. There is nothing like the apigee-access module.
The way to retrieve a KVM value is with the KeyValueMapOperations policy.
You can use variable references for the composite key, in the KVM policy.