Hi, is there a way to get all the API Proxy Names and its basepaths?. Its just that our organization has about 300+ and more API proxies, its quite hard to navigate and locate API proxies when investigating issues or developing apis as we only know the APIs by its basepath/path. How do I query all the most api proxies basepaths in the organization?. TIA
Solved! Go to Solution.
Thanks, I was able to trigger the script now and query all API Proxies basepaths in the organization.
I'm currently querying it with this,
node listProxyBasepaths.js -o <ORG NAME> -u <EMAIL> -p <PASSWORD> --proxypattern ^\S+ --latestrevision
Though, would it also be possible to filter it per environment?, Its just that an API proxy could have different basepaths depending on the revision and deployment environment it was deployed on. And that there could also be API proxies that could have a latest revision but not deployed in any environment at all as could be the case for many of our 300+ APIs. Would that be a possible filter or it it there already?. its just that I could not see it as an option in the help menu.
But for now, this would be helpful alright to at least make it easy for us to find APIs using its basepaths assuming they are also the same basepaths for the latest revision used on different env.. Thanks.
ok I've updated that script to search only proxies that are deployed to a specific environment. Pull the latest to get that update.
NB: this isn't a supported script. I offer it only to show an example of using the Google API for Apigee to retrieve proxies and basepaths. You can do whatever you like with the documented API !
Thanks, I was finally able to query the all APIs deployed in a specific environment with the command below. Thanks.
node listProxyBasepaths.js -o <ORG NAME> -u <USERNAME OR EMAIL> -p <PASSWORD> --proxypattern ^\S+ --env=<ENVIRONMENT NAME>
BTW, yes, I know about the Edge APIs, though I don't have quite the time to mint my own script to remap the existing APIs to the specific use case like this that I am looking for. Hence I was really looking for this specific feature on the Edge API or some custom script as navigating our organization to develop and even debug APIs is a hassle especially when you can only search for the API proxy name and not the basepath/path of the API you're looking for which is the common way an API is being investigated for bugs whenever one occurs.
@dchiesa1 wrote:ok I've updated that script to search only proxies that are deployed to a specific environment. Pull the latest to get that update.
NB: this isn't a supported script. I offer it only to show an example of using the Google API for Apigee to retrieve proxies and basepaths. You can do whatever you like with the documented API !