Add bulk kvm entries to a KVM at environment level in Apigee X

I’m trying to add bulk KVM entries to a KVM at environment level in Apigee X. I see an api that does the job but for only single entry.

https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.environments.keyvaluemaps.entries/create

I tried passing multiple entries as an array but api gives error invalid json error.

curl “https://apigee.googleapis.com/v1/organizations/org_1/environments/env_1/keyvaluemaps/KVM_1/entries” \

-X POST \

-H “Authorization: Bearer $TOKEN” \

-H ‘Content-Type:application/json’ \

-d ‘[{“name”: “key1”, “value”: “data1”},{“name”: “key2”, “value”: “data2”}]’

Does this api only support one entry at a time? Is there any api that can add multiple KVM entries to a KVM in Apigee X? I guess I see an api for the same for apigee Edge, but couldnt find one for Apigee X.

Thanks

1 Like

Hey @zaheen555 ,

We’ve seen that your question hasn’t gotten a response yet. We’ll keep checking in on this thread and encourage other members to share their thoughts.

Hi @zaheen555 - the apigeecli can do this, check out the docs here: https://github.com/apigee/apigeecli/blob/main/docs/apigeecli_kvms_entries_import.md