Print Configuration Variables
Steps
- Create a new project and name it
config-vars
. - Select the project folder and open the pop-up menu.
- Choose New -> JavaScript Service.
- Give it a meaningful name (e.g
print-config-vars.js
). -
Replace the generated code in
print-config-vars.js
with the following:var configurations = require("core/v4/configurations"); var response = require("http/v4/response"); var keys = configurations.getKeys(); var dirigibleKeys = {}; for (var i = 0; i < keys.length; i++) { var key = keys[i]; if (key.startsWith("DIRIGIBLE")) { var value = configurations.get(key); dirigibleKeys[key] = value; } } response.print(JSON.stringify(dirigibleKeys));
For more information, see the API documentation.