How to Export All Environment Configurations from One Org. and Import to Another Org ?

Not applicable

How to Export All Environment Configurations like Key/Value Map, Target Servers & etc. from One Org. and Import to Another Org using Script ? I read a community same like this question here : https://community.apigee.com/articles/2093/how-do-i-move-data-from-one-org-to-another.html

Here, I think they mentioned about a tool which handles for Products, Developers & etc. But, not Environment Configurations. Can you please Suggest how to export environment variables and restore in another organization or all together different Edge Installation ?

2 2 1,133
2 REPLIES 2

Not applicable

Hi Kumaresan Sithambaram

Based on my understanding, I think the best practice is using APIs to setup the environments instead of doing it from apigee edge console.

If so, you could only need to make less changes of the API(payload or url) for particular org or environment to setup the environments.

Please find the document below

http://docs.apigee.com/api/environments

http://docs.apigee.com/api/keyvalue-maps

Given you have setup the environments in an existing org, you could use get api to get the value as the payload for setting environments.

e.g.

you could use

GET https://api.enterprise.apigee.com/v1/organizations/{existing_org_name}/keyvaluemaps/

or GET https://api.enterprise.apigee.com/v1/organizations/{existing_org_name}/keyvaluemaps/{map_name} to get the existing one

then

create new KVM in new org

I'm voting up, the same question🙂