How to import the Consumer Key/Secret from an existing apigee to the new set of apigee servers?

My organization is migrating from one set of apigee servers to the new set of apigee servers. We have moved most of the components such as proxies, shared flows, developer apps, company apps, developers, KVMs etc except the Consumer Key/Secrets from the existing apps so that whoever is using the existing apigees with these credentials can continue to use the same apps on the new servers without changing the credentials.

Now i came across the documentation and some earlier post here suggesting to use the below Management API solutions -

curl -i -H Content-type:application/json \
  https://api.enterprise.apigee.com/v1/o/{org-name}/developers/{developer_email_or_id}/apps/{app_name}... -X POST -d '{ "consumerKey":"NEW_CONSUMER_KEY","consumerSecret":"NEW_CONSUMER_SECRET"}'

However if i go to the Developer apps on the Edge UI, the URL in the browser looks like below

https://api.enterprise.apigee.com/v1/o/{org-name}/apps/{app_id}

It doesn't show me the bold highlighted part

https://api.enterprise.apigee.com/v1/o/{org-name}/developers/{developer_email_or_id}/apps/{app_name}/keys/

So if i try to use the above curl command, it just doesn't work.

Even if I try to use the Post query using Postman

POST https://api.enterprise.apigee.com/v1/o/{org-name}/apps/{app_id}

{ "consumerKey": "kM2uqqZ8WAyJiyq0Q92melA3T0M8dEAN", "consumerSecret": "8iIkJzH4ogR4rRhl" }

It says that Post method is NOT allowed.

I really need to move all the app credentials from the existing apigee servers to the new one where everything need to be migrated.

Any solution one can offer for this?

Thank you.

0 1 273
1 REPLY 1

You'll need to first create the developer and then their app (you can use the same ids) in the target server. Then you can import the existing keys into the newly created app.

https://community.apigee.com/articles/81037/migrating-company-owned-apps-to-developer-teams.html describes this process in a slightly different context (same server but different app owners), I think it'll help you understand the steps