Version 2.1.1792967583 · latest Download OpenAPI Markdown

IP sites

Sites served on IPs with custom ports; the IPs must first be selected in the user package.

ip-sitesIP product lineAuthentication: User (some parameters admin only)7 endpoints

List IP sites

GET/api/v2/ip-sites
Authentication: User (some parameters admin only)

Query parameters

FieldTypeRequiredDescription
pageinteger— Page number, starting from 1
Default 1
page_sizeinteger— Items per page
Default 20
sortstring— Sort fields, comma-separated; prefix `-` for descending, e.g. `-created_at,id`
tenant_idinteger— Admin only: filter by tenant. Ignored for tenant credentials, which only see their own tenant's data
upidinteger— Filter by user package.

Create IP site

POST/api/v2/ip-sites
Authentication: User (some parameters admin only)

Query parameters

FieldTypeRequiredDescription
tenant_idinteger— Admin only: filter by tenant. Ignored for tenant credentials, which only see their own tenant's data

Request body application/json

FieldTypeRequiredDescription
configobject— Node configuration fields (same as the site config; kind is always ip, and listen_addrs is derived from the bindings at publish time).
enabledboolean— Whether enabled
ip_idsinteger[]— IDs of the bound pool IPs, in order.
namestring— Name
originsIpSiteOrigin[]— Origin servers.
stop_codeinteger— 0 = normal; non-zero = every request returns this status code (set by admins or billing).
upidinteger— User package ID.

IP site available IPs

GET/api/v2/ip-sites/available-ips
Authentication: User (some parameters admin only)

Query parameters

FieldTypeRequiredDescription
upidintegerRequired User package ID.
scopestring— pool = the whole pool; mine = only the IPs already selected.
Values ["pool","mine"]Default "pool"
tenant_idinteger— Admin only: filter by tenant. Ignored for tenant credentials, which only see their own tenant's data

IP site port pre-check

POST/api/v2/ip-sites/port-check
Authentication: User (some parameters admin only)

Query parameters

FieldTypeRequiredDescription
tenant_idinteger— Admin only: filter by tenant. Ignored for tenant credentials, which only see their own tenant's data

Request body application/json

FieldTypeRequiredDescription
http_portsinteger[]— HTTP ports to check; ports outside 1-65535 are not rejected but reported as range.
https_portsinteger[]— HTTPS ports to check; ports outside 1-65535 are not rejected but reported as range.
ip_idsinteger[]Required IDs of the bound pool IPs, in order.
site_idinteger— Pass when editing a site: ports held by this site itself are not counted as occupied.
upidintegerRequired User package ID.

Get IP site

GET/api/v2/ip-sites/{id}
Authentication: User (some parameters admin only)

Update IP site

PUT/api/v2/ip-sites/{id}
Authentication: User (some parameters admin only)

Request body application/json

FieldTypeRequiredDescription
configobject— Node configuration fields (same as the site config; kind is always ip, and listen_addrs is derived from the bindings at publish time).
enabledboolean— Whether enabled
ip_idsinteger[]— IDs of the bound pool IPs, in order.
namestring— Name
originsIpSiteOrigin[]— Origin servers.
stop_codeinteger— 0 = normal; non-zero = every request returns this status code (set by admins or billing).
upidinteger— User package ID.

Delete IP site

DELETE/api/v2/ip-sites/{id}
Authentication: User (some parameters admin only)

IP sites object

FieldTypeRequiredDescription
access_addrsstring[]— Access address in ip:port form.
read-only
configobject— Node configuration fields (same as the site config; kind is always ip, and listen_addrs is derived from the bindings at publish time).
created_atstring— Created at
read-only
enabledboolean— Whether enabled
hintsstring[]— Hints (e.g. the node reported no listening ports, so that check was skipped).
read-only
http_portsinteger[]— HTTP ports to check; ports outside 1-65535 are not rejected but reported as range.
https_portsinteger[]— HTTPS ports to check; ports outside 1-65535 are not rejected but reported as range.
idinteger— Record ID
read-only
ip_idsinteger[]— IDs of the bound pool IPs, in order.
ipsIpSiteIp[]— Details of the bound pool IPs.
read-only
itemsAvailableIp[]— Items on this page
namestring— Name
originsIpSiteOrigin[]— Origin servers.
portsobject[]— Per-port check results.
site_idinteger— Pass when editing a site: ports held by this site itself are not counted as occupied.
stop_codeinteger— 0 = normal; non-zero = every request returns this status code (set by admins or billing).
tenant_idinteger— Owner tenant (user) ID
read-only
updated_atstring— Updated at
read-only
upidinteger— User package ID.