Accessing arbitrary keys in KVM from JavaScript policy

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 Solved
0 1 882
1 ACCEPTED 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.

 

View solution in original post

1 REPLY 1

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.