Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to add values to KVM in Apigee evaluation instance

We're using Apigee evaluation version and could able to create a new empty KVM but not able to assign any values to it. There is no edit option available. How to add values to KVM?

madhankumar_ms_0-1716382805476.png

 

3 3 238
3 REPLIES 3

You can do it via the API.

## KVM - POST new entry for one environment-scoped keyvaluemap 

:kvm = testmap

POST :apigee/v1/organizations/:org/environments/:env/keyvaluemaps/:kvm/entries
Authorization: Bearer :token
Content-Type: application/json

{"name":"setting1", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"}

Unfortunately, at the moment the UI does not allow setting values into the KVM. 

 

How do we post multiple entries? Can we do array of Json Objects and post entries for a KVM 

Entries : [
{"name":"setting1", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"},
{"name":"setting2", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"},
{"name":"setting3", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"}
]

@dchiesa1 @anilsagar 

 

 

@dchiesa1 @anilsagar

How do we post multiple entries? Can we do array of Json Objects and post entries for a KVM 

Entries : [
{"name":"setting1", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"},
{"name":"setting2", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"},
{"name":"setting3", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"}
]

Top Solution Authors