NodeactylApplication

class NodeactylApplication(host, key)

Main class constructor

Arguments
  • host – Where your panel is hosted (EG: http(s)://panel.host.net/)

getAllUsers()

NodeactylApplication.getAllUsers()

Gets a list of users from your panel

Returns

Promise.<unknown> – $param {Integer} Page number

createServer()

NodeactylApplication.createServer(Version, NameOfServer, OwnerID, EggID, DockerImage, StartupCmd, RAM, Swap, Disk, IO, CPU, AmountOfDatabases, AmountOfBackups, AmountOfAllocations)

Creates a server

Arguments
  • Version (String) – Version of the server to use

  • NameOfServer (String) – Name of server to create

  • OwnerID (Integer) – User ID of who should own this server

  • EggID (Integer) – Egg ID to use when installing the server

  • DockerImage (String) – The image to use from Docker

  • StartupCmd (String) – The command to use when starting this server (AKA JVM Arguments)

  • RAM (Integer) – The amount of RAM the server has

  • Swap (Integer) – The amount of Swap the server has

  • Disk (Integer) – The amount of Storage the server has

  • IO (Integer) – Set this to 500 please. (Even if you know what it is leave it alone)

  • CPU (Integer) – The amount of CPU Power the server can use (100 = 1 core);

  • AmountOfDatabases (Integer) – The max amount of databases a server can use

  • AmountOfBackups (Integer) – The max backups you can hold

  • AmountOfAllocations (Integer) – The max amount of allocation(s) a server can us

Returns

Promise.<unknown>