Create or update an IP geolocation database configuration
Added in 8.15.0
Path parameters
-
id
string Required The database configuration identifier.
Query parameters
-
master_timeout
string The 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. A value of
-1
indicates that the request should never time out. -
timeout
string The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. If no response is received before the timeout expires, the cluster metadata update still applies but the response indicates that it was not completely acknowledged. A value of
-1
indicates that the request should never time out.
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 \
--request PUT 'http://api.example.com/_ingest/ip_location/database/{id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"name":"string","maxmind":{"account_id":"string"},"ipinfo":{}}'
{
"name": "string",
"maxmind": {
"account_id": "string"
},
"ipinfo": {}
}
{
"acknowledged": true
}