Whitelist IP addresses
POST
https://api.vpsbg.eu/v1/network-protection/{id}/whitelistThis endpoint allows you to set a final list of IP addresses in the whitelist.
⚠️ All previously added IP addresses in the list will be removed.
If you didn't have whitelisted IPs before, the whitelist module will be automatically enabled.
Request
Path Params
id
integer
required
Your IP Address identificator.
Body Params application/json
networks
array[string]
required
>= 1 items<= 1000 items
Example
{
"networks": [
"100.100.200.100",
"100.100.100.0/24"
]
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
active
boolean
required
networks
array[string]
required
Example
{
"active": true,
"networks": [
"100.100.100.0/24",
"100.100.200.100/32"
]
}
Last modified: 2 months ago