How to export the Edge configuration to match maven config file format for CI/CD

Hi,

I am trying to export our Edge configuration (products, apps, developers etc) into SCM using the multi file format expected by the maven-config plugin. I have a file 'developerApps.json'. Using the management APIs I get the expanded info of all developer apps as :

{ "app" : [ { "apiProducts" : [ ], .....}, {.....}] }

The sample file given for the plugin is a different format as below:

"grant@enterprise.com": [
"apiProducts": [
"weatherProduct"
"callbackUrl": "http://weatherapp.com",
"name": "grantoneapp",
"scopes": []

Can you please let me what is the best way to export the edge config into thee json file formats as expected by the plugin? other than creating them manually.

Thanks

2 3 305
3 REPLIES 3

Hi, I need to figure out exactly the same process.

The maven plugin structure for developer app is

{    "developeremail@bla.com": [{
         // app json here
        }]
}

You could write a script to get the list of developers via /o/xx/developers, then for each get each app via /o/xx/developers/yy/apps/zz.. and then create the above structure since you'll have both parts

With that said, there's also an apigee migrate tool that allows developers and apps to be exported and imported