How to update KVM values with apigeetool

Hi All,

We are planning to automate the API-proxies deployments using apigeetool. We are using the below command as part of the Jenkins job to create and update the kvm .

apigeetool createkvmmap -u abc-o ${nonprod0rgName} -p xyz -e ${environmentName} --mapName poc_jenkins

1)what is the command to create new kvm map?

apigeetool createkvmmap -u sdoe@example.com -o sdoe -e test --mapName test-map

2)what is the command to update the existing kvm map?

3)what is the command to to create new entries/values im kvm map.?

apigeetool addEntryToKVM -u sdoe@example.com -o sdoe -e test --mapName test-map --entryName test1 --entryValue value1

4)what is the command to updated the existing entries/values in kvm map?

can someone answer 2,4th question.

i got the below error when i ran first command.

Error: KeyValueMap poc_jenkins already exists
0 5 409
5 REPLIES 5

@naga saketh jaligama,

For the 4th question, as per apigeetool npm documentation, there is no command to update the kvm entries. However you could try deleting the existing entry with deleteKVMEntry command and adding a new entry with the updated value you require using the same key.

that is for the entry ok but what about the kvm map value

This is the KVM behavior - When you add the same entry again, it updates the value of the existing entry. It's similar to hashmaps in java

how to check if exists or not?

Use getKVMEntry command to fetch the value for the key.