Hello everyone,
is there any possibility to get the following information from a API Proxy using API Calls?
* proxy URL (url in which you will reach the proxy)
* Environment to which the proxy is deployed
* Target URLs of the proxy
you can "build" it using https://<host>:8443/v1/organizations/<o>/environments/<e>/virtualhosts/default and https://<host>:8443/v1/organizations/<o>/apis/<proxy>/revisions/<revision>/proxies/default/ but first you will habe to get first the list of revisions, check the latest.
I guess I could use the same way to obtain the deployment information, but I was able to see which revision is deployed to which environment, and therefore I couldn´t map it to the REST api for getting the basePath using the previously mentioned call.
In general, what we would like to do, is generate a small Overview of the deployed Proxy using the REST API
Solved! Go to Solution.
Using this API, you can get the deployed revision of an API proxy for all environments. Using that revision, you can get the details of your API proxy using
https://{host}/v1/organizations/{org}/apis/{api}/revisions/{rev}/targets/{target}