API - Get index IP list

Security
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

ParameterStatusDescription
emailRequiredYour Opensolr registration email address
api_keyRequiredYour Opensolr API key
core_nameRequiredThe 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

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

Contact Support