1.0.2 • Published 5 years ago

unraid-api v1.0.2

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
5 years ago

unraid-api

Unofficial API for Unraid

yarn add unraid-api

Init

import unraid from 'unraid-api'

unraid.setAuth('root:password')
unraid.setHost('https://Tower.local')
unraid.setSecure(false) // ignore ssl certificate

or provide UNRAID_AUTH, UNRAID_HOST, or UNRAID_SECURE env vars.

Available methods

setAuth(auth: string)
setHost(host: string)
setSecure(secure: boolean)
renewCsrf()

getConfig()
getMAC()
getDisks()

unlockArray(encryptionKey: string)
startArray()
stopArray()

getVMs()
getVM(uuid: string)
startVM(uuid: string)
stopVM(uuid: string)

reboot()
poweroff()

License

GNU General Public License v3.0

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago