Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How can I fetch Org/Environment names within the Edge Microgateway plug-in?

I'm trying to write a custom plug-in. I am able to see the config key/secret, and the request, but what I am after is the Apigee env/org properties of the Edge Microgateway instance. Is there an object model doc for what’s available in a plugin?

Solved Solved
0 3 191
1 ACCEPTED SOLUTION

Former Community Member
Not applicable

If MG was started with the EDGEMICRO_ORG and EDGEMICRO_ENV variables, then those variables are available to the plugin.

Plugin specific configuration, key and secret are the only values available to the plugin. One way to see what is available to the plugin is to print the req object in the onrequest method.

View solution in original post

3 REPLIES 3