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 allocations
  • Create allocation
  • Delete allocation
  1. API - Application

Nodes -> Allocations

$client->application->nodes->allocations

Get allocations

$client->application->nodes->allocations->paginate(int $nodeId, int $page = 1);

Create allocation

$client->application->nodes->allocations->create(int $nodeId, array $data = []);

Delete allocation

$client->application->nodes->allocations->delete(int $nodeId, int $allocationId);
PreviousNodesNextLocations

Last updated 3 years ago