Install a database from a URL
install_databaseDownload, validate, and load a database from an HTTP or HTTPS URL. Use install_edition, when available, for MaxMind editions with managed updates. Accepts MMDB, gzip, tar, tar.gz, or ZIP with exactly one MMDB.
Instructions
Download, validate, and load a database from an HTTP or HTTPS URL. Use install_edition, when available, for MaxMind editions with managed updates. Accepts MMDB, gzip, tar, tar.gz, or ZIP with exactly one MMDB. Downloads and expanded data are limited to 1 GiB. Uses the configured download folder, or the first folder in directory mode. Existing files require overwrite: true and are replaced only after validation. Does not use MaxMind credentials or save the URL for updates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Database download URL. Requests can reach any HTTP(S) host accessible to this server. | |
| database | Yes | Destination filename ending in .mmdb, without a directory path. A name loaded from another folder is rejected, even with overwrite. MaxMind updates can replace imports named after configured or API-installed editions. | |
| overwrite | No | Replace an existing database with this name. Defaults to false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| error | No | ||
| updated | Yes | ||
| database | Yes | ||
| last_update | Yes |