The last paragraph of the page contains Accessing API proxies link. By following it you can find detailed instructions on how to set up an internal VM on your private network and invoke the proxy.
WARNING: Even that Apigee X eval org is free, both ways (provisioning a VM or setting up Envoy and Load Balancers) cost money, therefore you better use GCP trial accounts with $300 credit.
Guy, I feel your pain. I’m sorry about the state of the docs that tell you “go create a new VM and invoke your proxy endpoint from there.” We are working on fixing that! Please bear with us. Yuriy’s guidance (his answer below) will set you straight!
Make sure that Bearer $(token) resolved into a correct value. Based on the syntax you’re using, you need to have a bash function defined in your session:
So, execute this line to define token bash function, then a previous curl. Remove --silent to see what’s generated. This function does auto-refresh of your token. If you use a static value $TOKEN, then after 60 minutes it will expire and your request would fail and you need to fetch a new token, then repeat it. With this function, token will be auto-refreshed.
Test request
If you’re calling from a private network VM, then RUNTIME_IP was reported by your original post’s curl request to Management API; as well as a hostname configured at Environment Group.
The doc says, you should see there: PROJECT_NAME-eval.apigee.net, ergo should be: my-project-eval.apigee.net
So you can open https://apigee.google.com, navigate to Admin/Environments then Groups and double-check the hostname you need to use. Therefore
One attention point when using the Cloud Shell terminal: the script takes a long time to execute, causing your shell to close. I solved this by restarting the script after the organization was provisioned. Then opening the console at https://apigee.google.com/edge.
Using the envoy proxy approach is good but seems a bit too much work for me for eval. I’m lazy.
Easiest way I’ve found is to use the bitnami nginx vm from the marketplace and configure it with an external IP. It’s a micro instance and costs about $5 per month. Then, with one config file setting, I configure nginx as a reverse proxy straight to the instance IP. Total work is about 10 minutes and it’s super easy to do.
if interested, here’s the link to the image–> Bitnami Nginx