compute
GET /v1/compute/servers/{serverId}/sites
The sites on one of your servers, and whether another one fits.
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
| Name | Type | Required | What it is |
|---|---|---|---|
serverId (path) | Uuid | Yes | The 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
| Name | Type | Required | What it is |
|---|---|---|---|
server_id | string | Yes | — |
application_choices | object[] | Yes | CP-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_offer | object | Yes | CP-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… |
managed | boolean | Yes | True when the platform runs this server as a site host. |
can_deploy | boolean | Yes | — |
refusal | object | Yes | — |
capacity | ComputeServerCapacity | null | Yes | — |
applications | string[] | Yes | — |
php_versions | string[] | Yes | The PHP versions offered for the default (mainstream) line. |
product_lines | string[] | Yes | P3-016. The lines a site can be deployed here as, default first (mainstream, footprint_free). |
php_versions_by_line | object | Yes | The PHP versions offered per entry of product_lines, newest first. |
data | ComputeServerSite[] | Yes | — |
Errors this endpoint can return
401 · 403 · 404