Set Ports Server

Changed on

Set the ports to use for DDoS protection.

post/servers/{id}/protection/ports

Request

  • Base URL
    https://app.bitlaunch.io/api
  • URL
    https://app.bitlaunch.io/api/servers/{id}/protection/ports
  • Auth
    API key in header Authorization

Path parameters

idstring required

The id of the server to set ports on.

Request body

Response

200

idstring
namestring
hostinteger
ipv4string
regionstring
sizestring
sizeDescriptionstring
imagestring
imageDescriptionstring
createdstring
rateinteger
bandwidthUsedinteger
bandwidthAllowanceinteger
statusstring
errorTextstring
backupsEnabledboolean
versionstring
abuseboolean
diskGBinteger

Example response

{
  "id": "aaaaaaaaaaabbbbbbbbbbbbb",
  "name": "bitlaunch-debian-lon1-nibble-1024",
  "host": 4,
  "ipv4": "25.25.25.25",
  "region": "lon1",
  "size": "nibble-4096",
  "sizeDescription": "Nibble-4096",
  "image": "20000",
  "imageDescription": "OpenVPN (OpenVPN)",
  "created": "2020-10-12T11:22:05.493Z",
  "rate": 60,
  "bandwidthAllowance": 1000000000000,
  "status": "ok",
  "version": "2.0.0",
  "diskGB": 100,
  "protection": {
    "enabled": true,
    "proxy": {
      "ip": "40.40.40.40",
      "region": "bvm-lux",
      "ports": [
        {
          "portNumber": 1234,
          "protocol": "tcp"
        }
      ],
      "target": "25.25.25.25"
    }
  }
}

Changes