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

FieldTypeRequiredDescription
ipsarrayYesList of IP objects to remove
ips[].ipstringYesThe 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

FieldTypeDescription
dataarrayA list of whitelisted IPs that have been removed
data[].ipstringThe IP address that was removed from the whitelist
data[].descriptionstringThe user-defined label for the removed IP
data[]._idstringA unique identifier assigned to the removed IP
messageobjectProvides status details about the removal operation
message.titlestringA short message indicating the status of the operation
message.bodystringA detailed message about the removal operation
message.variantstringThe 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.

FieldTypeDescription
errorstringError message
{
  "error": "Invalid input data."
}

401 Unauthorized

Invalid API credentials provided.

FieldTypeDescription
errorstringError message
{
  "error": "Unauthorized - Invalid credentials."
}

On this page