Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to deploy the latest imported revision of API Proxy

Hi

How can I deploy the latest imported revision without knowing/undeploying the current deployed version?

Do we need to always undeploy the deployed version and then deploy the latest imported version?

Is there a management API, which can directly deploy the latest imported version without need of two steps , first to undeploy the deployed version and second to deploy the latest imported revision?

I tried using below API with query parameter delay=2 and override=true but it didn't work.

https://apidocs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/environments/%7Benv_nam....

Thanks

Solved Solved
0 5 403
1 ACCEPTED SOLUTION

Yes, the API call you referenced is the one you want. It works.

Try a longer delay. 2 seconds is not long enough. It will take longer than that to deploy a revision.

The call looks like this:

    POST \
      -H "content-type : application/x-www-form-urlencoded" \
      "${mgmtserver} /v1 /o /${org} /e /${environment} /apis /${proxyname} /revisions /${rev} /deployments" \
      -d 'override=true&delay=60'


(Collapse spaces as necessary. If I leave them in then the formatted code is not rendered here. Blasted forum.)

View solution in original post

5 REPLIES 5