Lets one address reach one part of your Opensolr Index. A request from an address with no matching rule is refused, even with the right password.
https://opensolr.com/solr_manager/api/add_ipemail and api_key of your account, as GET or POST parameters: Authentication.01 · Parameters
core_nameRequiredThe name of your index.
ipRequiredOne IPv4 address, such as 203.0.113.10, or all for every address.
handlerRequiredThe request handler the address may use: /select for searches, /update for writes, / for every handler.
02 · Example
curl -s "https://opensolr.com/solr_manager/api/add_ip?email=YOUR_EMAIL&api_key=YOUR_API_KEY&core_name=my_index&ip=203.0.113.10&handler=/"
03 · Answer
{ "status": true, "msg": "IP_ADDED_OK" }
A new index starts with one rule, all on /. Remove it with delete_ip once your own rules are in place.
04 · Errors
ERROR_INVALID_IP_ADDRESSHTTP 200ip is not one IPv4 address or all.
ERROR_CANNOT_ADD_MORE_THAN_N_IP_ADDRESSESHTTP 200The index has as many rules as your plan allows. N is the number of your plan.
ERROR_INVALID_CORE_NAMEHTTP 200No index name, or the index is not yours.
ERROR_AUTHENTICATION_FAILEDHTTP 403The email and API key do not match.
ERROR_RATE_LIMIT_PER_MINUTEHTTP 429Too many calls. Wait for the Retry-After seconds: Rate limits.
05 · Related
List the rules: get_ip_list. Remove one: delete_ip.
Every error code and HTTP status of the API: API errors. Calls per minute and per hour: Rate limits.