Version 2.1.1792967583 · latest Download OpenAPI Markdown

Lines

A resolution record in a node group, showing which DNS line and weight a node appears with; a line must be disabled before it can be deleted.

linesNode schedulingAuthentication: Admin only5 endpoints

List lines

GET/api/v2/lines
Authentication: 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`

Create line

POST/api/v2/lines
Authentication: Admin only

Request body application/json

FieldTypeRequiredDescription
dns_linestring— DNS resolution line code (default = default line; carrier/region line codes are mapped by the DNS domain).
enabledboolean— Whether enabled
forceboolean— Force the write and skip two safeguards (requires a second confirmation): when the line becomes an enabled primary line, its node must have applied its configuration and be at most one release behind (otherwise 422 node_config_behind); disabling the last enabled primary line of the node group or making it a backup (otherwise 422 last_primary_line).
is_backupboolean— Backup IP; kept out of DNS normally and brought in or taken out automatically according to the node group's backup IP switch mode.
is_backup_defaultboolean— Backup default line; when the node group has no default line in use, this line is automatically resolved on the default line instead, and switched back once one is in use again.
node_group_idintegerRequired ID of the node group this line belongs to.
node_idintegerRequired Node ID
weightinteger— Weight, 1 to 100; a larger weight receives a larger share of resolutions.

Get line

GET/api/v2/lines/{id}
Authentication: Admin only

Update line

PUT/api/v2/lines/{id}
Authentication: Admin only

Request body application/json

FieldTypeRequiredDescription
dns_linestring— DNS resolution line code (default = default line; carrier/region line codes are mapped by the DNS domain).
enabledboolean— Whether enabled
forceboolean— Force the write and skip two safeguards (requires a second confirmation): when the line becomes an enabled primary line, its node must have applied its configuration and be at most one release behind (otherwise 422 node_config_behind); disabling the last enabled primary line of the node group or making it a backup (otherwise 422 last_primary_line).
is_backupboolean— Backup IP; kept out of DNS normally and brought in or taken out automatically according to the node group's backup IP switch mode.
is_backup_defaultboolean— Backup default line; when the node group has no default line in use, this line is automatically resolved on the default line instead, and switched back once one is in use again.
node_group_idinteger— ID of the node group this line belongs to.
node_idinteger— Node ID
weightinteger— Weight, 1 to 100; a larger weight receives a larger share of resolutions.

Delete line

DELETE/api/v2/lines/{id}
Authentication: Admin only

Lines object

FieldTypeRequiredDescription
backup_default_onboolean— Whether this backup default line is currently in effect and resolved on the default line (read-only, maintained by the scheduled job).
read-only
backup_onboolean— Whether this backup IP is currently in DNS (read-only, maintained by the scheduled job).
read-only
created_atstring— Created at
read-only
disable_bystring— Disable source (manual by admin, monitor by node monitoring, bandwidth for bandwidth limit, etc.); empty when enabled.
dns_linestring— DNS resolution line code (default = default line; carrier/region line codes are mapped by the DNS domain).
enabledboolean— Whether enabled
forceboolean— Force the write and skip two safeguards (requires a second confirmation): when the line becomes an enabled primary line, its node must have applied its configuration and be at most one release behind (otherwise 422 node_config_behind); disabling the last enabled primary line of the node group or making it a backup (otherwise 422 last_primary_line).
idinteger— Record ID
read-only
is_backupboolean— Backup IP; kept out of DNS normally and brought in or taken out automatically according to the node group's backup IP switch mode.
is_backup_defaultboolean— Backup default line; when the node group has no default line in use, this line is automatically resolved on the default line instead, and switched back once one is in use again.
node_group_idinteger— ID of the node group this line belongs to.
node_idinteger— Node ID
updated_atstring— Updated at
read-only
weightinteger— Weight, 1 to 100; a larger weight receives a larger share of resolutions.