Settings
get
Param
Type
Description
balena.settings.get('apiUrl').then(function(apiUrl) {
console.log(apiUrl);
});getAll
balena.settings.getAll().then(function(settings) {
console.log(settings);
});Last updated
Was this helpful?
balena.settings : object
Kind: static namespace
balena.settings.get([key]) ⇒ Promise
Kind: static method of settings
Summary: Get a single setting. Only implemented in Node.js
Access: public
Fulfil: * - setting value
[key]
String
setting key
Example
balena.settings.get('apiUrl').then(function(apiUrl) {
console.log(apiUrl);
});balena.settings.getAll() ⇒ Promise
Kind: static method of settings
Summary: Get all settings Only implemented in Node.js
Access: public
Fulfil: Object - settings
Example
balena.settings.getAll().then(function(settings) {
console.log(settings);
});Last updated
Was this helpful?
Was this helpful?