Create or update GeoIP database configurations Added in 8.15.0

PUT /_ingest/geoip/database/{id}

Create or update IP geolocation database configurations.

Path parameters

  • id string Required

    ID of the database configuration to create or update.

Query parameters

  • Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

  • timeout string

    Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

application/json

Body Required

  • name string Required
  • maxmind object Required

    Additional properties are allowed.

    Hide maxmind attribute Show maxmind attribute object

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • acknowledged boolean Required

      For a successful response, this value is always true. On failure, an exception is returned instead.

PUT /_ingest/geoip/database/{id}
curl \
 -X PUT http://api.example.com/_ingest/geoip/database/{id} \
 -H "Content-Type: application/json" \
 -d '{"name":"string","maxmind":{"account_id":"string"}}'
Request examples
{
  "name": "string",
  "maxmind": {
    "account_id": "string"
  }
}
Response examples (200)
{
  "acknowledged": true
}