compute

GET /v1/compute/servers/{serverId}/sites

The sites on one of your servers, and whether another one fits.

All compute endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The key must carry the sites.view permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/sites \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Lists the organisation's sites placed on this server and answers, from a live reading, whether a new site can be deployed onto it. can_deploy is false with a machine refusal code (not_managed, not_operable, disk_full, low_memory, capacity_unknown, not_in_good_standing) the dashboard turns into words per locale. capacity is null when the server is not managed by the platform. applications and php_versions are the choices a deploy accepts. A site's can_move_back is true while its move onto this server is inside the seven-day hold; moving it back is rollbackSiteOwnVps. Requires sites.view; 404 for a server that is not the caller's.

Parameters

NameTypeRequiredWhat it is
serverId (path)UuidYesThe server's id, as listComputeServers reports it. Ours (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine.

Response

NameTypeRequiredWhat it is
server_idstringYes—
application_choicesobject[]YesCP-APPS. Every application the deploy dialog lists, grouped like the create-site picker (website for wordpress/php/static, else the application's category). An entry the…
licence_offerobjectYesCP-APPS r3 (owner order A326). The WHMCS licence we sell with a deploy (the default application_licence_source: zinn): its tier and monthly price, billed from the first…
managedbooleanYesTrue when the platform runs this server as a site host.
can_deploybooleanYes—
refusalobjectYes—
capacityComputeServerCapacity | nullYes—
applicationsstring[]Yes—
php_versionsstring[]YesThe PHP versions offered for the default (mainstream) line.
product_linesstring[]YesP3-016. The lines a site can be deployed here as, default first (mainstream, footprint_free).
php_versions_by_lineobjectYesThe PHP versions offered per entry of product_lines, newest first.
dataComputeServerSite[]Yes—

Errors this endpoint can return

401 · 403 · 404