Skip to main content
Server Actions

Ban or unban an IP address

Sets whether a specific IP address row should be user-banned for automatic allocation. The row's block ID must be assigned to at least one of your Virtual Private Cloud hosts.

This endpoint is special functionality for Webdock Private Cloud and Enterprise customers only.

Requires both write:servers and change:server_ip permissions on the API token.

PATCH
/servers/ipBlocks/{ipId}/banned
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

ipIdintegerrequired

IP row ID from tbl_colocationips

Example: 12345

Body

application/json
bannedbooleanrequired

True to ban, false to unban

Example: true

Response

application/json

Updated IP address ban state

blockIdinteger

Block id

Example: 999
idinteger

IP row id

Example: 12345
ipv4string

IPv4 address or 'none' for IPv6-only rows

Example: 45.148.31.241
ipv6string

IPv6 address

Example: 2a0f:85c1:1000::241
statusenum<string>

Computed status after update

Available options: free, used, banned, reserved
Example: banned