[[get-geoip-database-api]] === Get geoip database configuration API ++++ Get geoip database configuration ++++ Returns information about one or more geoip database configurations. [source,console] ---- GET /_ingest/geoip/database/my-database-id ---- // TEST[skip:we don't want to leak the enterprise-geoip-downloader task, which touching these APIs would cause. Therefore, skip this test.] [[get-geoip-database-api-request]] ==== {api-request-title} `GET /_ingest/geoip/database/` `GET /_ingest/geoip/database` [[get-geoip-database-api-prereqs]] ==== {api-prereq-title} * If the {es} {security-features} are enabled, you must have the `manage` <> to use this API. [[get-geoip-database-api-path-params]] ==== {api-path-parms-title} ``:: (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 `*`. [[get-geoip-database-api-query-params]] ==== {api-query-parms-title} include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=master-timeout] [[get-geoip-database-api-example]] ==== {api-examples-title} [[get-geoip-database-api-specific-ex]] ===== Get information for a specific geoip database configuration [source,console] ---- GET /_ingest/geoip/database/my-database-id ---- // TEST[skip:we don't want to leak the enterprise-geoip-downloader task, which touching these APIs would cause. Therefore, skip this test.] The API returns the following response: [source,console-result] ---- { "databases" : [ { "id" : "my-database-id", "version" : 1, "modified_date_millis" : 1723040276114, "database" : { "name" : "GeoIP2-Domain", "maxmind" : { "account_id" : "1234567" } } } ] } ---- // TEST[skip:we don't want to leak the enterprise-geoip-downloader task, which touching these APIs would cause. Therefore, skip this test.]