palbaseDocs

API reference

Palbase Machines

Palbase's machines module: a project's machines — isolated compute instances that run its backend. A machine runs an image of its project's own and answers at its own address under the app domain, where its requests are its customers' own (no API key is asked for there). A machine of a shared size is put to sleep when it is idle and woken by the next request, which waits for it; a dedicated one never sleeps. A change of image, size or port rolls out beside the version that serves. Emits machine.created, machine.updated and machine.deleted. A project's databases live here too: Postgres 18 of its own, reached from anywhere with TLS and a password at <name>-<ref>.db.<domain> — 5432 direct to Postgres, 6543 through the transaction pooler — with pgvector and PostGIS; a database of a free or hobby size is put to sleep when it is idle and woken by the next connection, the other sizes never sleep. Emits database.created, database.updated, database.deleted, database.undeleted, database.purged and database.password_changed; database.restoring as a restore is asked for, and database.restore_failed when one does not bring the database back to its moment (project_id, database, database_id, to, reason, then: latest, brought back to the latest moment of its backups instead; kept, it serves as it was; failed, it could not be brought back at all); and, once a month for a Free project — every environment's together, told to the environment of the database it was read from — of the hours its free and preview databases share, database.awake_hours_warning at 80% of them and database.awake_hours_spent as they are spent (project_id: that environment, studio_project: the Studio project whose hours they are, when it is of one, database: the free database it was read from, database_id, month, threshold, awake_hours: the project's free and preview databases' between them, every environment's, deleted ones too, awake_hours_limit, database_awake_hours: that database's own) — the same event, by its id, whenever it is delivered. A database on dedicated storage that does not grow automatically (or cannot now) emits database.storage_warning at 90% of its storage and database.storage_full as it is full and turns read-only — or as it is down, its disk filled before its storage (out_of_disk true; used_bytes is then its last reading; wal_stuck true when its data is well under its storage and write logs could not be archived) — (project_id, database, database_id, threshold, used_bytes, storage_bytes, storage_autoscaling, out_of_disk, wal_stuck) — once at each storage it holds.

The contract itself: /openapi/machines.openapi.json

Machines

GET/machinesPOST/machinesGET/machines/sizesGET/machines/networkGET/machines/{name}PATCH/machines/{name}DELETE/machines/{name}GET/machines/{name}/buildsPOST/machines/{name}/buildsGET/machines/{name}/previewsPUT/machines/{name}/previews/{pull_request}DELETE/machines/{name}/previews/{pull_request}GET/machines/{name}/domainsPOST/machines/{name}/domainsPATCH/machines/{name}/domains/{host}DELETE/machines/{name}/domains/{host}GET/machines/{name}/builds/{build}GET/machines/{name}/builds/{build}/logPOST/machines/{name}/rollbackGET/machines/{name}/logsPOST/machines/{name}/execGET/machines/{name}/execsGET/machines/{name}/metricsGET/machines/{name}/openapiGET/machines/{name}/cronsGET/machines/{name}/crons/{cron}/runsPOST/machines/{name}/crons/{cron}/runPOST/machines/{name}/crons/{cron}/pausePOST/machines/{name}/crons/{cron}/resumeGET/machines/{name}/tasksPOST/machines/{name}/tasksGET/machines/{name}/tasks/{task}POST/machines/{name}/tasks/{task}/cancelPOST/machines/{name}/tasks/{task}/retryGET/machines/{name}/task-typesPOST/machines/{name}/test-usersPOST/machines/{name}/test-users/{user}/templates/{template}DELETE/machines/{name}/test-users/{user}POST/machines/{name}/previews/{pull_request}/authorizePOST/machines/{name}/previews/{pull_request}/openPOST/machines/{name}/movePOST/machines/{name}/builds/{build}/cancelGET/machines/{name}/hooksPOST/machines/{name}/hooksDELETE/machines/{name}/hooks/{hook}GET/machines/github/detect

GitHub

Databases

Sites

Domains