简体   繁体   中英

Not able to fetch the key-value from KVM in Apigee using Python Script

I have created a KVM in Apigee with the name "test_kvm" and the key is "name" with value "myname". So basically it's like {"name": "myname"} and the value is encrypted. In KVM policy also I am using private prefix <Get assignTo private.name>...</>

Now when I am trying to fetch this variable into my python script using PythonScript policy using the script getname = flow.getVariable("private.name") this value is getting populated by "None". and not by value "myname".

Why am I getting None and how to properly fetch the Key value from KVM in Python?

Got it, the thing is we have to deploy kvm in the same environment that we are using to deploy our api proxy.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM