Servidores de juegos
Garrys Mod
Despliega un servidor de Garry's Mod por API
4 GB
RAM
200%
CPU
20 GB
Disco
Qué es Garrys Mod
El legendario sandbox de física de Facepunch Studios. Aloja servidores DarkRP, sandbox y de gamemodes de forma programática.
Los valores de arriba son un punto de partida recomendado — ajusta RAM, CPU y disco por llamada API y escala cuando quieras.
Despliega Garrys Mod con el SDK
deploy.ts
import { CloudClient } from "@enzonic/cloud-api";
const cloud = new CloudClient({ apiKey: process.env.CLOUD_API_KEY! });
// Resolve the Garrys Mod egg by name (ids vary per panel)
const eggs = await cloud.eggs();
const egg = eggs.find((e) => e.name.includes("Garrys Mod"))!;
const server = await cloud.servers.create({
name: "garrys-mod-1",
eggId: egg.id,
region: "USA",
ramMb: 4096,
cpuPercent: 200,
diskMb: 20480,
});
await cloud.servers.power(server.id, "start");O con REST (curl)
deploy.sh
# 1. Find the Garrys Mod egg id
curl -s https://cloud.api.enzonic.com/v1/eggs \
-H "Authorization: Bearer $CLOUD_API_KEY"
# 2. Create the server (replace EGG_ID with the id from step 1)
curl -X POST https://cloud.api.enzonic.com/v1/servers \
-H "Authorization: Bearer $CLOUD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "garrys-mod-1",
"eggId": EGG_ID,
"region": "USA",
"ramMb": 4096,
"cpuPercent": 200,
"diskMb": 20480
}'Gestiónalo por completo
Una sola clave gestiona el encendido, la consola, los comandos y los archivos.
// Power, console & files — all from the one key
await cloud.servers.power(server.id, "restart");
await cloud.servers.command(server.id, "say Hello from the API");
const usage = await cloud.servers.resources(server.id);Relacionados
Despliega Garrys Mod en segundos
Crea una cuenta, obtén una clave API y despliega por código.
Empezar gratis