Record the current global IPv4 address to a BigQuery table.
Create a BigQuery table with the following schema:
[
{
"name": "time",
"type": "TIMESTAMP",
"mode": "REQUIRED"
},
{
"name": "address",
"type": "STRING",
"mode": "REQUIRED"
}
]
$ export GOOGLE_APPLICATION_CREDENTIALS=<your key>.json
$ bq-globalip -bigquery <project>:<dataset>.<table>
If you want to periodically record an address, please run bq-globalip with cron or a scheduler you prefer.
Content type
Image
Digest
Size
7.1 MB
Last updated
over 6 years ago
docker pull ymyzk/bq-globalip