API - Update HTTP Auth

Security

Sets a new username and password on your Opensolr Index. Every search and every update must then send them.

Endpointhttps://opensolr.com/solr_manager/api/update_http_auth
MethodGET
Authemail and api_key of your account, as GET or POST parameters: Authentication.
In the panelHTTP Basic Auth

01 · Parameters

core_nameRequired

The name of your index.

usernameRequired

The new username. Use letters and digits only.

passwordRequired

The new password. Use letters and digits only.

02 · Example

curl -s "https://opensolr.com/solr_manager/api/update_http_auth?email=YOUR_EMAIL&api_key=YOUR_API_KEY&core_name=my_index&username=searchapp&password=NEW_PASSWORD"

03 · Answer

status is true and msg holds the answer of the server. On a cluster master, every replica gets the same credentials and replication is set up again.

Update every app, plugin and script that connects to the index, or they get refused.

04 · Errors

NOT_OWNER_ERRORHTTP 200

The index is not yours.

ERROR_AUTHENTICATION_FAILEDHTTP 403

The email and API key do not match.

ERROR_RATE_LIMIT_PER_MINUTEHTTP 429

Too many calls. Wait for the Retry-After seconds: Rate limits.

05 · Related

Remove the username and password: remove_http_auth.

Limit the addresses that may reach the index: add_ip.

Every error code and HTTP status of the API: API errors. Calls per minute and per hour: Rate limits.