Returns information about one or more IP location database configurations Added in 8.15.0
Path parameters
-
ID of the database configuration to create or update.
Query parameters
-
master_timeout string
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.
Body Required
The configuration necessary to identify which IP geolocation provider to use to download a database, as well as any provider-specific configuration necessary for such downloading. At present, the only supported providers are maxmind and ipinfo, and the maxmind provider requires that an account_id (string) is configured. A provider (either maxmind or ipinfo) must be specified. The web and local providers can be returned as read only configurations.
curl \
-X PUT http://api.example.com/_ingest/ip_location/database/{id} \
-H "Content-Type: application/json" \
-d '{"name":"string","maxmind":{"account_id":"string"},"ipinfo":{}}'
{
"name": "string",
"maxmind": {
"account_id": "string"
},
"ipinfo": {}
}
{
"acknowledged": true
}