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
  • List allocations
  • Assign allocation
  • Set allocation note
  • Set primary allocation
  • Unassign allocation
  1. API - Client

Server -> Network (allocations)

$client->client->server->allocations

List allocations

$client->client->server->allocations->list(string $serverIdentifier);

Assign allocation

$client->client->server->allocations->assign(string $serverIdentifier);

Set allocation note

$client->client->server->allocations->setNote(string $serverIdentifier, int $allocationId, string $notes);

Set primary allocation

$client->client->server->allocations->setPrimary(string $serverIdentifier, int $allocationId);

Unassign allocation

$client->client->server->allocations->unassign(string $serverIdentifier, int $allocationId);
PreviousServer -> SchedulesNextServer -> Users

Last updated 3 years ago