{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
3
Question by praveen p · Apr 09, 2015 at 06:47 AM · 1.3k Views edgekvmkey valueconfiguration management

Copying KVM values from one environment to another

Is there any method to copy the KVM values from environment to another without the use of Key Value Map Operation policy ?

Comment
Add comment Show 1
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ziaur Raheman Khan · Mar 19, 2018 at 11:50 AM 0
Link

Hi @praveen p I am just curious here. I have never used nodeJS to a handle my edge env(proxy, prodcut or KVMs) Where do I start for this. Any infor would be very helpful .


Close

6 Answers

  • Sort: 
avatar image
1

Answer by seshi · Apr 09, 2015 at 06:58 AM

@praveen p

#1 Use GET KVM map data using GET call - http://apigee.com/docs/management/apis/get/organizations/%7Borg_name%7D/environments/%7Benv_name%7D/keyvaluemaps/%7Bmap_name%7D

#2 PUT to update KVM - http://apigee.com/docs/management/apis/put/organizations/%7Borg_name%7D/environments/%7Benv_name%7D/keyvaluemaps/%7Bmap_name%7D

#3 POST to create KVM map - http://apigee.com/docs/management/apis/post/organizations/%7Borg_name%7D/environments/%7Benv_name%7D/keyvaluemaps

use Payload from GET call #1 to create or update another KVM map.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by sudheendras   · Apr 09, 2015 at 07:05 AM

Hi @praveen p - I don't know your complete use case.. but if you want to use key-value-map across environments, you can configure the KVM with "Organization" scope (and avoid copying).

Checkout KVM policy related documents here for more details on scope.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by pbhogill · Apr 10, 2015 at 05:11 AM

@praveen p can you describe your use case a little more? As @sudheendra1 explains you can use the Management APIs to move values between KVMs or use Org level KVMs if more appropriate. You can also use node.js to programatically move values between KVMs. You will have to end up using the Management APIs from your node code however.

Slightly unrelated, if you are looking to move entries from one cache to the other without using a PopulateCache policy, you can also use the apigee-access node module to get from one cache & put into another one.

Hope this helps!

Comment
Add comment Show 1 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image praveen p · Apr 14, 2015 at 09:32 AM 0
Link

@Prithpal Bhogill - To move the KVM from one environement to another through come command like codes or through some plugin feature. (Not through Apigee Edge UI - Using KVM policy)

avatar image
0

Answer by Den Nis · Jul 17, 2015 at 12:28 PM

Hi Diego,

Thanks for fixing the sdk, I got it working both the import and export codes, I'm currently trying to merge the import and export and noticed that the implementation in the import kvm's is a bit different in export.

What I'm trying to achieve now is to export KVMs from test env then import to prod for now, (but main goal is to transfer those also to another org with specific env). Is it possible to change the env config from test to prod when importing the KVMs?

The challenge I am facing right now is that once the --env is set to test (via console) then gruntfile executes, export will run pointing to test after that I am not able to change the target to 'prod' to import those KVMs in prod env.

Thanks!

denz

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Den Nis · Jul 20, 2015 at 05:22 AM

Thanks Diego for your quick response. that is what I'm trying to do last week but since I'm new to grunt I did not make it to work. I'll check on the code you created and see what I can do to improve.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by SnehaNiyogi · Sep 14, 2017 at 09:08 PM

Hi. I was trying to use the grunt plugin to copy KVM from one env to another as mentioned above. But I always get

grunt-apigee-kvm@0.1.0 requires a peer of grunt@~0.4.5 but none was installed error.

I am following the exact steps as mentioned in

https://gruntjs.com/getting-started

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why KVM can store oauth token? 1 Answer

Is there any way we can log all the changes made in KVM and configuration in API through Console or script 1 Answer

What's the use case of KVM Scope @ Policy level ? 1 Answer

Unreliable KVM return values 1 Answer

templatize target url with KVM by environment 4 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2019 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Members
  • Badges