Inside the Node-RED function node, we can retrieve credentials form VCAP_SERVICES by putting the following piece of code inside the bluemix-settings.js
file:
functionGlobalContext: { VCAP_SERVICES: JSON.parse(process.env.VCAP_SERVICES)}
Inside the Node-RED function node we can use those properties as below:
var x = context.global.VCAP_SERVICES;
My requirement is to extract credentials such as workspace_id without hard-coding the workspace_id inside the URL. Can we do that?
For Node-RED in Bluemix, how can I protect email credentials? 3 Answers
Node-Red - write to cloudant fails 1 Answer
Node-Red Boilerplate not running 0 Answers
As I can make a complete backup of Application in bluemix with Node-red? 0 Answers
Method outside of Bluemix Node-RED to toggle Nodes such as Inject or Debug 1 Answer