Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

mallendeo/unraid-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unraid-api

Unofficial API for Unraid

yarn add unraid-api

Init

import * as 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, force?: boolean)

reboot()
poweroff()

License

GNU General Public License v3.0