v51

OpenAPI 3.0.0raw.githubusercontent.com2026-08-01267339950.6 KB
VPS: Firewall

Create new firewall

Create a new firewall.

Use this endpoint to set up new firewall configurations for VPS security.

post/api/vps/v1/firewall

Request body

namestring required

Example request

{
  "name": "My Firewall Group"
}

Response

Success response

idinteger

Firewall ID

namestring

Firewall name

is_syncedboolean

Is current firewall synced with VPS

created_atstring date-time
updated_atstring date-time

Example response

{
  "id": 65224,
  "name": "HTTP and SSH only",
  "rules": [
    {
      "id": 24541,
      "action": "accept",
      "protocol": "TCP",
      "port": "1024:2048",
      "source": "any",
      "source_detail": "any"
    }
  ],
  "created_at": "2021-09-01T12:00:00Z",
  "updated_at": "2021-09-01T12:00:00Z"
}