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 endpointsList lines
GET
/api/v2/linesAuthentication: Admin only
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
| page | integer | — | Page number, starting from 1 |
| page_size | integer | — | Items per page |
| sort | string | — | Sort fields, comma-separated; prefix `-` for descending, e.g. `-created_at,id` |
Create line
POST
/api/v2/linesAuthentication: Admin only
Request body application/json
| Field | Type | Required | Description |
|---|---|---|---|
| dns_line | string | — | DNS resolution line code (default = default line; carrier/region line codes are mapped by the DNS domain). |
| enabled | boolean | — | Whether enabled |
| force | boolean | — | 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_backup | boolean | — | 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_default | boolean | — | 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_id | integer | Required | ID of the node group this line belongs to. |
| node_id | integer | Required | Node ID |
| weight | integer | — | 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
| Field | Type | Required | Description |
|---|---|---|---|
| dns_line | string | — | DNS resolution line code (default = default line; carrier/region line codes are mapped by the DNS domain). |
| enabled | boolean | — | Whether enabled |
| force | boolean | — | 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_backup | boolean | — | 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_default | boolean | — | 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_id | integer | — | ID of the node group this line belongs to. |
| node_id | integer | — | Node ID |
| weight | integer | — | 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
| Field | Type | Required | Description |
|---|---|---|---|
| backup_default_on | boolean | — | Whether this backup default line is currently in effect and resolved on the default line (read-only, maintained by the scheduled job). |
| backup_on | boolean | — | Whether this backup IP is currently in DNS (read-only, maintained by the scheduled job). |
| created_at | string | — | Created at |
| disable_by | string | — | Disable source (manual by admin, monitor by node monitoring, bandwidth for bandwidth limit, etc.); empty when enabled. |
| dns_line | string | — | DNS resolution line code (default = default line; carrier/region line codes are mapped by the DNS domain). |
| enabled | boolean | — | Whether enabled |
| force | boolean | — | 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). |
| id | integer | — | Record ID |
| is_backup | boolean | — | 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_default | boolean | — | 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_id | integer | — | ID of the node group this line belongs to. |
| node_id | integer | — | Node ID |
| updated_at | string | — | Updated at |
| weight | integer | — | Weight, 1 to 100; a larger weight receives a larger share of resolutions. |