Remove Whitelisted IPs
Removes up to 10 IP addresses per request.
Limit
You can remove up to 10 IP addresses per request.
Remove IP addresses from your whitelist. Once removed, these IPs will no longer have automatic access to your proxy services.
Request
curl -X DELETE "https://app-api.geonode.com/api/configuration/active/whitelisted-ips" \
-H "Authorization: Basic base64(username:password)" \
-H "Content-Type: application/json" \
-d '{"ips":[{"ip":"161.142.148.121"},{"ip":"161.142.148.147"}]}'Request Body Parameters
| Field | Type | Required | Description |
|---|---|---|---|
ips | array | Yes | List of IP objects to remove |
ips[].ip | string | Yes | The IP address to remove from whitelist |
Example Request Body
{
"ips": [
{
"ip": "161.142.148.121"
},
{
"ip": "161.142.148.147"
}
]
}Response
200 Success
The IP addresses have been successfully removed from your whitelist.
Response Fields
| Field | Type | Description |
|---|---|---|
data | array | A list of whitelisted IPs that have been removed |
data[].ip | string | The IP address that was removed from the whitelist |
data[].description | string | The user-defined label for the removed IP |
data[]._id | string | A unique identifier assigned to the removed IP |
message | object | Provides status details about the removal operation |
message.title | string | A short message indicating the status of the operation |
message.body | string | A detailed message about the removal operation |
message.variant | string | The status variant indicating success or failure |
Example Response
{
"data": [
{
"ip": "161.142.148.141",
"description": "mac-m1",
"_id": "67a875f693afe58d40f2e93d"
}
],
"message": {
"title": "Updated",
"body": "Whitelisted IPs removed.",
"variant": "success"
}
}Error Responses
400 Bad Request
Invalid input data provided.
| Field | Type | Description |
|---|---|---|
error | string | Error message |
{
"error": "Invalid input data."
}401 Unauthorized
Invalid API credentials provided.
| Field | Type | Description |
|---|---|---|
error | string | Error message |
{
"error": "Unauthorized - Invalid credentials."
}