Pterodactyl PHP SDK
  • Documentation
  • Basics
    • Installation
    • SDK initialization
  • API - Application
    • Users
    • Nodes
    • Nodes -> Allocations
    • Locations
    • Servers
    • Servers -> Databases
    • Nests
  • API - Client
    • Basic functions
    • Account
    • Server
    • Server -> Databases
    • Server -> File Manager
    • Server -> Schedules
    • Server -> Network (allocations)
    • Server -> Users
    • Server -> Backups
    • Server -> Startup
    • Server -> Settings
Powered by GitBook
On this page
  • Get servers
  • Get server details
  • Get server details using externalId
  • Update server details
  • Update server build
  • Update server startup
  • Create server
  • Suspend server
  • Unsuspend server
  • Reinstall server
  • Delete server
  • Force delete server
  1. API - Application

Servers

$client->application->servers

Get servers

$client->application->servers->paginate(int $page = 1);

Get server details

$client->application->servers->details(int $serverId);

Get server details using externalId

$client->application->servers->detailsFromExternalId($externalId);

Update server details

$client->application->servers->updateDetails(int $serverId, array $data);

Update server build

$client->application->servers->updateBuild(int $serverId, array $data);

Update server startup

$client->application->servers->updateStartup(int $serverId, array $data);

Create server

$client->application->servers->create(array $data);

Suspend server

$client->application->servers->suspend(int $serverId);

Unsuspend server

$client->application->servers->unsuspend(int $serverId);

Reinstall server

$client->application->servers->reinstall(int $serverId);

Delete server

$client->application->servers->delete(int $serverId);

Force delete server

$client->application->servers->forceDelete(int $serverId);
PreviousLocationsNextServers -> Databases

Last updated 3 years ago