Servers
Listed below are all the server methods, along with their parameters, filters, and includes.
All parameters that contain (*
) are required.
List Servers
Returns a dict containing all registered servers, or
None
if a specific server is not found.
Optionally you can provide Filters and Includes for server query.
name: str
-> The server name.
identifier: str
-> The server identifier.
user_id: int
-> The user ID that owns the server.
pterodactyl_id: int
-> The Pterodactyl ID of the user who owns the server.
product_id: str
-> The ID of the product from which the server originates.
suspended: str
| datetime
-> A str
or datetime
object containing the date on which the server was suspended.
includes: list
-> List of includes. Available Includes: ['product', 'productCount', 'user', 'userCount'].
Server Details
Returns a dict containing the server information, or
None
if not found.
id: int
-> The server ID. *
Suspend Server
Returns a dict with the suspended server information, or an error if the ID does not exist.
id: int
-> The server ID. *
Unsuspend Server
Returns a dict with the information of the server that had its suspension revoked, or an error if the ID does not exist.
id: int
-> The server ID. *
Delete Server
Returns a dict containing the deleted server information, or an error if the ID does not exist.
id: int
-> The server ID. *