File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ # [core3,enterprise3]
3
+ # Bearer auth works with v1 /query
4
+ curl -v http://localhost:8181/query \
5
+ --header " Authorization: Bearer ${INFLUXDB3_ENTERPRISE_ADMIN_TOKEN} " \
6
+ --data-urlencode " db=sensors" \
7
+ --data-urlencode " q=SELECT * FROM home"
8
+
9
+ # Bearer auth works with v1 /write
10
+ curl -v " http://localhost:8181/write?db=sensors" \
11
+ --header " Authorization: Bearer ${INFLUXDB3_ENTERPRISE_ADMIN_TOKEN} " \
12
+ --data-raw " sensors,location=home temperature=23.5 1622547800"
13
+
14
+ # Basic auth works with v1 /write
15
+ curl -v " http://localhost:8181/write?db=sensors" \
16
+ --user " admin:${INFLUXDB3_ENTERPRISE_ADMIN_TOKEN} " \
17
+ --data-raw " sensors,location=home temperature=23.5 1622547800"
18
+
19
+ # URL auth works with v1 /write
20
+ curl -v " http://localhost:8181/write?db=sensors&u=admin&p=${INFLUXDB3_ENTERPRISE_ADMIN_TOKEN} " \
21
+ --data-raw " sensors,location=home temperature=23.5 1622547800"
22
+
23
+ # Token auth works with /api/v2/write
24
+ curl -v http://localhost:8181/write? db=sensors \
25
+ --header " Authorization: Token ${INFLUXDB3_ENTERPRISE_ADMIN_TOKEN} " \
26
+ --data-raw " sensors,location=home temperature=23.5 1622547800"
Original file line number Diff line number Diff line change
1
+ # [core3,enterprise3]
2
+ # Delete a database with hard delete at date
3
+ curl -v -X DELETE " http://localhost:8181/api/v3/configure/database?hard_delete_at=20250701&db=sensors" \
4
+ --header " Authorization: Bearer ${INFLUXDB3_ENTERPRISE_ADMIN_TOKEN} "
You can’t perform that action at this time.
0 commit comments