API - Remove IP access

Security
Security API

Remove IP Access Rule

Revoke a previously granted IP access rule from your Opensolr Index. Removes the specified IP and handler combination from the access list.

Endpoint

GET https://opensolr.com/solr_manager/api/delete_ip

Parameters

ParameterStatusDescription
emailRequiredYour Opensolr registration email address
api_keyRequiredYour Opensolr API key
core_nameRequiredThe name of the index you wish to remove an IP rule from
ipRequiredThe IP address you wish to remove (e.g., 15.24.53.123)
handlerRequiredThe Solr URI handler that the restriction was applied to (e.g., /update)
Removing an IP rule is immediate. Make sure you are not locking out your own application by removing the wrong IP. Use the Get IP List API first to review your current rules.

Code Examples

cURL

curl -s "https://opensolr.com/solr_manager/api/delete_ip?email=YOUR_EMAIL&api_key=YOUR_API_KEY&core_name=my_solr_core&ip=15.24.53.123&handler=/update"

PHP

$params = http_build_query([
    'email'     => 'YOUR_EMAIL',
    'api_key'   => 'YOUR_API_KEY',
    'core_name' => 'my_solr_core',
    'ip'        => '15.24.53.123',
    'handler'   => '/update',
]);
$response = file_get_contents("https://opensolr.com/solr_manager/api/delete_ip?{$params}");
$result = json_decode($response, true);
print_r($result);

Python

import requests

response = requests.get("https://opensolr.com/solr_manager/api/delete_ip", params={
    "email": "YOUR_EMAIL",
    "api_key": "YOUR_API_KEY",
    "core_name": "my_solr_core",
    "ip": "15.24.53.123",
    "handler": "/update",
})
print(response.json())

Related Documentation

Need help securing your Opensolr Indexes? We are here to help.

Contact Support