DeluxHostAPI Reference
Storage Boxes

Replace allowed storage IP addresses

PUT
/v1/services/{id}/storage/allowed-ips

The whole list, replacing what is there; [] removes the restriction. IPv4 or IPv6\naddresses or networks in CIDR notation, at most 20. 0.0.0.0/0 is refused.\n\nMind your own address — a list that does not contain it locks this machine out of\nSFTP/WebDAV/SMB (never out of the API or the dashboard).

Authorization

apiToken storage:write
headerAuthorizationBearer <token>

A personal API token: Authorization: Bearer dh_live_…. See Authentication for scopes.

Scope: storage:write

Path Parameters

id*integer

The service id, as returned by GET /v1/services.

Request Body

application/json
  1. body
items*array<string>
Itemsitems <= 20

Response Body

The list as the node stored it.

application/json
  1. response
supported*boolean
limit*integer
items*array<string>
yourIp*string|null
curl -X PUT 'https://api.deluxhost.net/v1/services/0/storage/allowed-ips' \  -H "Authorization: Bearer $DELUXHOST_TOKEN" \  -H 'Content-Type: application/json' \  -d '{  "items": [    "string"  ]}'
Example Response
{  "supported": true,  "limit": 0,  "items": [    "string"  ],  "yourIp": "string"}