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

What is the best way to get target server details into my node.js backend?

Not applicable

We have a number of different Apigee environments that we use, and these environments all point to different backends.

Generally we use target servers for this purpose when configuring targets or service callouts so that we can have the same API Proxy configuration across our environments and migrate seamlessly.

How would we do this with our node.js targets though? There is no way in node.js to tap into the target servers directy, I do not want to hammer the management API with calls from node on each request.

Any ideas?

Solved Solved
0 3 869
1 ACCEPTED SOLUTION

Not applicable

Hi -- thanks for asking.

There's nothing right now that lets you extract that information from Node.js directly and easily, but based on your experience it'd be good to know if perhaps we should add an enhancement in the future.

If you can figure out another way to get that information, for instance if you can set it in a flow variable, you can retrieve it using the "apigee-access" node.js module (found on NPM).

View solution in original post

3 REPLIES 3