Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Access Named Target Servers from nodejs target

Not applicable

Hi,

I need to access Named target server from my nodejs target.

Not sure how to do it without using the management API calls.

Any help will be of great help.

thanks

0 3 214
3 REPLIES 3

anilsr
Former Googler

@Ravi Shah ,

You can try using Apigee-Access node module in nodejs target to retrieve flow variable "loadbalancing.targetserver" which contains target server details.

Hi Anil,

The "loadbalancing.targetserver" doesn't work. Can you please check.

Thanks.

Hi @Anil Sagar,

The "loadbalancing.targetserver" doesn't work as its scope is in target response only.

The requirement is to first retrieve back end(target) credentials using apigee vault using nodejs (the only way) and then use the same nodejs to call the named target server that is pre-defined.

Do you think this can be achieved some other way ?