11 lines
439 B
Bash
11 lines
439 B
Bash
########################################################
|
|
# Use the Bearer authorization scheme with a database token
|
|
# to query the InfluxDB v1 API
|
|
########################################################
|
|
|
|
curl --get "https://cluster-id.a.influxdb.io/query" \
|
|
--header "Authorization: Bearer DATABASE_TOKEN" \
|
|
--header 'Content-type: application/json' \
|
|
--data-urlencode "db=DATABASE_NAME" \
|
|
--data-urlencode "q=SHOW MEASUREMENTS"
|