Export URL of Apis for an org/space,Export url of all apis in org

Not applicable

How can I export the urls of all APIs in a specific org/space? I would like to analyze those URLs for identifying commonalities and set naming recommendations. The export can be to a text or csv file so I can filter it.

1 5 203
5 REPLIES 5

You would have to build your own crawler script to pull the proxies configs via APIs.

For example:

1. get list of proxies

http://docs.apigee.com/management/apis/get/organizations/%7Borg_name%7D/apis

2. for each proxy, get revisions

http://docs.apigee.com/management/apis/get/organizations/%7Borg_name%7D/apis/%7Bapi_name%7D

...  
  "name": "myapi",
  "revision": [
    "1"
  ]
...

3. for each deployed revision, get base path

http://docs.apigee.com/management/apis/get/organizations/%7Borg_name%7D/apis/%7Bapi_name%7D/revision...

...
    <Basepaths>/v1/api1</Basepaths>
...

You may also have to take in consideration the virtual hosts used by each proxy in order to know the domain and have the full URL for each. A proxy may have multiple virtual hosts active.

yep. And re "Build your own crawler", you may find some good starter material here:

https://github.com/DinoChiesa/EdgeTools/tree/master/findJavaPolicies

This basically looks for all API Proxies, and then searches for all policies that use Java.

You would need to do something similar, but instead look for the basePath of the proxyEndpoints.

Also, there is no way to know, for sure, the full urlpaths that are supported by apiproxies. The basePath for the proxyEndpoints in the apiproxy bundle will be the starting point. But each Conditional flow may support a different "path suffix" and some conditional flows may support "any URL suffix at all".

LMK if questions on this and I can elaborate.

@Dino @Ricardo de Andrade How do we use the management API for ON Prem APigee. as api.enterprise.com cananot recognise our Org.

Thank you on Advance.

Hi Ziaur,

please ask new questions with the "Ask a Question" button, rather that burying the question in a comment to an answer from an old question.

6600-ask-a-question.png

Thanks!

My Bad @Dino

Will ask this in community. I am trying with management url to get the api management features on my on prem server.

Thank you,

Ziaur