unraid-api

1.0.2 • Public • Published

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(authstring)
setHost(hoststring)
setSecure(secureboolean)
renewCsrf()
 
getConfig()
getMAC()
getDisks()
 
unlockArray(encryptionKeystring)
startArray()
stopArray()
 
getVMs()
getVM(uuidstring)
startVM(uuidstring)
stopVM(uuidstring)
 
reboot()
poweroff()

License

GNU General Public License v3.0

Readme

Keywords

Package Sidebar

Install

npm i unraid-api

Weekly Downloads

2

Version

1.0.2

License

GPL-3.0

Unpacked Size

52.2 kB

Total Files

5

Last publish

Collaborators

  • mallendeo