Key
balena.models.key : object
Kind: static namespace
create
balena.models.key.create(title, key) ⇒ Promise
Kind: static method of key
Summary: Create a ssh key
Access: public
Fulfil: Object - ssh key
title
String
key title
key
String
the public ssh key
Example
balena.models.key.create('Main', 'ssh-rsa AAAAB....').then(function(key) {
console.log(key);
});get
balena.models.key.get(id) ⇒ Promise
Kind: static method of key
Summary: Get a single ssh key
Access: public
Fulfil: Object - ssh key
id
Number
key id
Example
getAll
balena.models.key.getAll([options]) ⇒ Promise
Kind: static method of key
Summary: Get all ssh keys
Access: public
Fulfil: Object[] - ssh keys
[options]
Object
{}
extra pine options to use
Example
remove
balena.models.key.remove(id) ⇒ Promise
Kind: static method of key
Summary: Remove ssh key
Access: public
id
Number
key id
Example
Last updated
Was this helpful?