Code Monkey home page Code Monkey logo

proxyurlexporter's Introduction

Find APIs deployed on a Virtual Host in Apigee

This Java program finds all API Proxies deployed on a specific virtualhost in an org and env. It calls the Apigee Management API to find all deployed API Proxies in an environment and then downloads the ZIP files of each one to inspect the virtual host. It outputs a list of API Proxies, with deployed revision number on the requested virtualhost and it's basepath. Without this, you would have to inspect each API Proxy in the UI of Apigee.

Disclaimer

This example is not an official Google product, nor is it part of an official Google product.

License

This material is copyright 2018-2020, Google LLC. and is licensed under the Apache 2.0 license. See the LICENSE file.

This code is open source but you need to compile it in order to use it.

Dependencies

This Java program depends on the org.json library. I found mine here: https://github.com/stleary/JSON-java or use the direct link.

Config File

You need a config file that looks like this. Please update or create this file myconfig.properties. It should have the following attributes:

apigee.org=YOURORG
apigee.env=YOURENV
apigee.vhost=YOURVHOST
apigee.token=YOURTOKEN

The token is a valid OAuth token for the Apigee management APIs. See here on how to get it: https://docs.apigee.com/api-platform/system-administration/using-oauth2#get-the-tokens

Usage

Compile the Java program:

javac ProxyURLExporter.java -cp org.json.jar:.

This is how to run it:

java -cp org.json.jar:. ProxyURLExporter <configfile>

For example:

java -cp org.json.jar:. ProxyURLExporter myconfig.properties

proxyurlexporter's People

Contributors

kbouwmee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.