Skip to main content
Module

x/ptereno/lib/types/application.ts>UpdateServerBuildOptions

An efficient and fully compliant Pterodactyl API wrapper.
Latest
interface UpdateServerBuildOptions
import { type UpdateServerBuildOptions } from "https://deno.land/x/ptereno@v1.0.1/lib/types/application.ts";

Properties

allocation: number

The default allocation id

optional
memory: number

The maximum amount of memory to allocate for the server in megabytes.

When set to 0, an unlimited amount of memory can be consumed.

Required when there are no limits provided.

optional
swap: number

The maximum amount of swap space to allocate for the server in megabytes.

When set to 0, swap space will be disabled. When set to -1, swap space will be unlimited.

Required when there are no limits provided.

optional
io: number

The IO performance of this server relative to other running containers on the system.

This is a value between 10 and 1000.

Required when there are no limits provided.

optional
cpu: number

The maximum CPU consumption, in a percentage, allotted for the server.

A single CPU core would be considered 100%, and a full quad-core processor would be considered 400%.

When set to 0, the server can use as much CPU time as needed.

Required when there are no limits provided.

optional
disk: number

The maximum amount of disk space allotted for the server in megabytes.

When set to 0, the server can use as much disk space as needed.

Required when there are no limits provided.

optional
threads: string

The specific CPU cores that this server can use.

Examples

0 - The first core

0-1,3 - The first 2 cores and the fourth core

0,1,3,4 - The first, second, fourth, and fifth cores

optional
oom: boolean

When enabled, the server will be killed when it runs out of memory.

optional
feature_limits: { allocations?: number; databases?: number; backups?: number; }

The application feature limits

optional
addAllocations: Array<number>

A list of allocation ids to assign to the server.

The allocations must not already be assigned to a server.

optional
removeAllocations: Array<number>

A list of allocation ids to remove from the server.

The list must not contain the default server allocation.