Security API
Get IP Access List
Retrieve all IP-based access rules currently configured for your Opensolr Index. Returns the full list of IPs and their associated handlers.
Endpoint
GET https://opensolr.com/solr_manager/api/get_ip_list
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 get the IP list for |
Code Examples
cURL
curl -s "https://opensolr.com/solr_manager/api/get_ip_list?email=YOUR_EMAIL&api_key=YOUR_API_KEY&core_name=my_solr_core"
PHP
$params = http_build_query([ 'email' => 'YOUR_EMAIL', 'api_key' => 'YOUR_API_KEY', 'core_name' => 'my_solr_core', ]); $response = file_get_contents("https://opensolr.com/solr_manager/api/get_ip_list?{$params}"); $result = json_decode($response, true); print_r($result);
Python
import requests response = requests.get("https://opensolr.com/solr_manager/api/get_ip_list", params={ "email": "YOUR_EMAIL", "api_key": "YOUR_API_KEY", "core_name": "my_solr_core", }) print(response.json())
Use this endpoint to audit your current IP restrictions before making changes. It's a good practice to review your IP list periodically to ensure only authorized IPs have access.
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