Loading…
Loading documentation...
Manage the environment firewall, read virtual-network inventory and manage instance port forwards via the public API.
The public v1 networking surface currently provides the environment's firewall rules, owned virtual-network inventory and instance-scoped port forwards. It does not expose customer routes named /v1/vpcs, /v1/firewalls, or /v1/reserved-ips.
| Method | Path | Scope | Current behavior |
|---|---|---|---|
| GET | /api/v1/network/firewall |
network:read |
Lists every rule and the firewall's state |
| POST | /api/v1/network/firewall |
network:write |
Adds an inbound rule: protocol, ports, sources, description |
| PATCH | /api/v1/network/firewall |
network:write |
Turns one of your rules off or on: id, isEnabled |
| DELETE | /api/v1/network/firewall?id=... |
network:write |
Removes one of your rules |
A change is enforced at the firewall's next pass, within 15 minutes. Rules the platform manages answer 403. See Firewall Configuration for the rule format.
curl "https://serversareup.com/api/v1/networks?limit=50" \
-H "Authorization: Bearer $SAU_API_KEY"
GET /api/v1/networks returns your environment's private network, read from the environment itself: its range (cidr), its gateway and each server in it with its private address (servers[].privateIp). limit caps how many servers are listed (default 50, at most 100). An account with no environment gets an empty list. The environment belongs to your personal account, so an organization key is refused with ERR_ENVIRONMENT_TENANT_SCOPE (409); use a personal API token. The route is read-only; POST, PUT, PATCH, and DELETE return 405. The environment's firewall rules are at GET /api/v1/network/firewall.
| Method | Path | Current behavior |
|---|---|---|
| GET | /api/v1/instances/:id/port-forwards?limit=50 |
List owned active forwards |
| POST | /api/v1/instances/:id/port-forwards |
Reserve a durable upsert command; returns 202 |
| DELETE | /api/v1/instances/:id/port-forwards?externalPort=30050&protocol=tcp |
Reserve a durable removal command; returns 202 |
POST body:
{
"externalPort": 30050,
"targetPort": 80,
"protocol": "tcp",
"description": "web"
}
The external port must fall inside the caller's allocated range. A 202 response acknowledges the durable command reservation; it is not proof that provider application or readback has completed.
Every Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.