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
| Parameter | Status | Description |
|---|---|---|
email | Required | Your Opensolr registration email address |
api_key | Required | Your Opensolr API key |
core_name | Required | The name of the index you wish to remove an IP rule from |
ip | Required | The IP address you wish to remove (e.g., 15.24.53.123) |
handler | Required | The 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
Update HTTP AuthSet or update HTTP Basic Auth credentials for your index.
Add IP Access RuleGrant access to specific IPs for your Solr endpoints.
Get IP ListRetrieve all IP access rules configured for your index.
Remove IP AccessRevoke IP-based access rules from your index.
Need help securing your Opensolr Indexes? We are here to help.
Contact Support