IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Get geoip database configuration API
editGet geoip database configuration API
editReturns information about one or more geoip database configurations.
resp = client.perform_request( "GET", "/_ingest/geoip/database/my-database-id", ) print(resp)
GET /_ingest/geoip/database/my-database-id
Prerequisites
edit-
If the Elasticsearch security features are enabled, you must have the
manage
cluster privilege to use this API.
Path parameters
edit-
<database>
-
(Optional, string) Comma-separated list of database configuration IDs to retrieve. Wildcard (
*
) expressions are supported.To get all database configurations, omit this parameter or use
*
.
Query parameters
edit-
master_timeout
-
(Optional, time units)
Period to wait for the master node. If the master node is not available before
the timeout expires, the request fails and returns an error. Defaults to
30s
. Can also be set to-1
to indicate that the request should never timeout.
Examples
editGet information for a specific geoip database configuration
editresp = client.perform_request( "GET", "/_ingest/geoip/database/my-database-id", ) print(resp)
GET /_ingest/geoip/database/my-database-id
The API returns the following response:
{ "databases" : [ { "id" : "my-database-id", "version" : 1, "modified_date_millis" : 1723040276114, "database" : { "name" : "GeoIP2-Domain", "maxmind" : { "account_id" : "1234567" } } } ] }