How will apigee extract the value and not the key from kvm policy

I have a kvm name of datastore

kvm_store.

key value

my_name deb

I want to extract the value deb only...

Can anyone guide me?

0 2 152
2 REPLIES 2

Use a 'Key Value Map Operations' policy.

Put the name of the KVM as the 'mapIdentifier' in the KeyValueMapOperations element.

You'll use the <Get> element to extract the value and assign it to a variable. Note the part about prefixing your assignTo with "private." if your KVM is encrypted.

Yup, using the mentioned details of kvm of "datastore", key value of "my_name" and storing it to a name_var variable it would look like

<KeyValueMapOperations mapIdentifier="datastore" async="false" continueOnError="false" enabled="true" name="GetKVM">
 <DisplayName>GetKVM</DisplayName>
 <ExpiryTimeInSecs>86400</ExpiryTimeInSecs>
<Scope>environment</Scope>
<Get assignTo="name_var" index="1">
<Key>
<Parameter>my_name</Parameter>
</Key> </Get>
</KeyValueMapOperations>