Automation possibilities for Governance activities in APIGEE

Not applicable

We are working on the automation possibilities for Governance activities in APIGEE like code review, migration or deployment checks etc..

We found some APIs for proxy deployment and exporting proxy bundle, trying to build tool with these APIs following below steps

Export proxy bundle from Apigee to local directory.

Read proxy bundle and check if naming standards followed and all mandatory policies are applied.

If everything fine identify the changes required in proxy for other environment and provide the values.

Deploy process to new environment.

Does Apigee has same APIs to read product as well(like API to export proxy bundle and deploy proxy API).

Could you please share if any out of tools available in Apigee for automation of Goverernance activities mentioned above.

Regards, Rathnakar

0 2 482
2 REPLIES 2

Yes, Apigee Edge exposes APIs to read metadata about API products as well. The admin APIs are documented. For example you can retrieve all API Product attributes. And via the API you can also update product attributes.

If you're interested in suggestions, here are some:

  1. retrieve the API Proxy from source code control, not from Apigee Edge. Don't use Apigee Edge as the source code repository. Instead of "downloading the API Proxy from Apigee Edge", get the proxy from the source code repo. Also get the API Product definitions from the source code repo.
  2. There's a project, a nodejs module that assist swith static analysis of Apigee configurations.
    https://github.com/apigeecs/bundle-linter
    You might want to check that out, maybe build on top of that. It can handle naming policies, checks for mandatory policies, etc.
  3. If you are using nodejs, there are nodejs wrappers for Apigee Edge admin APIs. https://github.com/DinoChiesa/apigee-edge-js
    There are also similar wrappers for golang, and Powershell. (Sorry, no Java wrappers at this time!)

sidd-harth
Participant V

Hi @Rathnakar Reddy, I worked on a PoC, to automate Apigee deployment via CICD Pipeline, I gathered some some info on tools & technologies. Please have a look at the below article, it might help you.

https://community.apigee.com/articles/56661/basic-apigee-cicd-pipeline.html