docs-v2/content/influxdb/v2/admin/tokens/use-tokens.md

46 lines
1.4 KiB
Markdown
Raw Normal View History

InfluxDB OSS 2.4 (#4361) * created OSS 2.4 * port nav-item shortcode fixes to 2.4 * update set() example in influxdb faq * port schema exploration updates to 2.4 * replace indexDB with InfluxDB * OSS and Enterprise FAQ update (#4310) * add info about relative time ranges and task retries, closes influxdata/EAR#3415 * add delete faqs, closes influxdata/EAR#3412 * restructure enterprise faq, add entropy faq, closes influxdata/EAR#3364 * add faq about total query time, closes influxdata/EAR#3509 * port MQTT changes into influxdb 2.4 * Influx CLI 2.4 (#4340) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * Add users to an org as an owner and other fixes (#4258) * document adding users to an org as an owner and other fixes, closes #4171 * update content around owners * InfluxQL shell documentation (#4263) * added influx v1 shell command docs, closes #4173 * add influxql shell process docs, closes #4172 * add links to influxql shell process docs * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * feat: documented invokable scripts within tasks functionality in the CLI (#4295) * feat: documented invokable scripts within tasks functionality in the CLI * chore: added updated_in frontmatter * add information about cli configs with username/password (#4328) Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * influx CLI 2.4 release notes (#4267) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * influx CLI 2.4 release notes * Update content/influxdb/v2.4/reference/release-notes/influx-cli.md * update release notes with cli username/password support Co-authored-by: Andrew Depke <andrewdepke@gmail.com> * 2.4 Virtual DBRPs (#4342) * WIP auto-add dbrp * add dbrp management docs * Update replication docs for InfluxDB 2.4 (#4343) * update replication docs * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * port postman install update to 2.4 * port influx stacks init fix to all influxdb versions * API docs for 2.4 (#4357) * api docs for 2.4 * updated to latest swaggerV1Compat.yml * update edge.js * Oss 2.4 release notes (#4352) * added initial notes * added updates * updated the release notes * made a few updates, changed TBD * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * added date to influx-cli 2.4.0 release Co-authored-by: lwandzura <51929958+lwandzura@users.noreply.github.com> Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Sam Dillard <sam@influxdata.com>
2022-08-19 15:27:54 +00:00
---
title: Use tokens
seotitle: Use an API token in InfluxDB
description: Use an API token in the InfluxDB UI, the `influx` CLI, or the InfluxDB API.
menu:
influxdb_v2:
InfluxDB OSS 2.4 (#4361) * created OSS 2.4 * port nav-item shortcode fixes to 2.4 * update set() example in influxdb faq * port schema exploration updates to 2.4 * replace indexDB with InfluxDB * OSS and Enterprise FAQ update (#4310) * add info about relative time ranges and task retries, closes influxdata/EAR#3415 * add delete faqs, closes influxdata/EAR#3412 * restructure enterprise faq, add entropy faq, closes influxdata/EAR#3364 * add faq about total query time, closes influxdata/EAR#3509 * port MQTT changes into influxdb 2.4 * Influx CLI 2.4 (#4340) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * Add users to an org as an owner and other fixes (#4258) * document adding users to an org as an owner and other fixes, closes #4171 * update content around owners * InfluxQL shell documentation (#4263) * added influx v1 shell command docs, closes #4173 * add influxql shell process docs, closes #4172 * add links to influxql shell process docs * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * feat: documented invokable scripts within tasks functionality in the CLI (#4295) * feat: documented invokable scripts within tasks functionality in the CLI * chore: added updated_in frontmatter * add information about cli configs with username/password (#4328) Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * influx CLI 2.4 release notes (#4267) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * influx CLI 2.4 release notes * Update content/influxdb/v2.4/reference/release-notes/influx-cli.md * update release notes with cli username/password support Co-authored-by: Andrew Depke <andrewdepke@gmail.com> * 2.4 Virtual DBRPs (#4342) * WIP auto-add dbrp * add dbrp management docs * Update replication docs for InfluxDB 2.4 (#4343) * update replication docs * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * port postman install update to 2.4 * port influx stacks init fix to all influxdb versions * API docs for 2.4 (#4357) * api docs for 2.4 * updated to latest swaggerV1Compat.yml * update edge.js * Oss 2.4 release notes (#4352) * added initial notes * added updates * updated the release notes * made a few updates, changed TBD * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * added date to influx-cli 2.4.0 release Co-authored-by: lwandzura <51929958+lwandzura@users.noreply.github.com> Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Sam Dillard <sam@influxdata.com>
2022-08-19 15:27:54 +00:00
name: Use tokens
parent: Manage tokens
weight: 204
aliases:
- /influxdb/v2/users/tokens/use-tokens
- /influxdb/v2/security/tokens/use-tokens/
InfluxDB OSS 2.4 (#4361) * created OSS 2.4 * port nav-item shortcode fixes to 2.4 * update set() example in influxdb faq * port schema exploration updates to 2.4 * replace indexDB with InfluxDB * OSS and Enterprise FAQ update (#4310) * add info about relative time ranges and task retries, closes influxdata/EAR#3415 * add delete faqs, closes influxdata/EAR#3412 * restructure enterprise faq, add entropy faq, closes influxdata/EAR#3364 * add faq about total query time, closes influxdata/EAR#3509 * port MQTT changes into influxdb 2.4 * Influx CLI 2.4 (#4340) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * Add users to an org as an owner and other fixes (#4258) * document adding users to an org as an owner and other fixes, closes #4171 * update content around owners * InfluxQL shell documentation (#4263) * added influx v1 shell command docs, closes #4173 * add influxql shell process docs, closes #4172 * add links to influxql shell process docs * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * feat: documented invokable scripts within tasks functionality in the CLI (#4295) * feat: documented invokable scripts within tasks functionality in the CLI * chore: added updated_in frontmatter * add information about cli configs with username/password (#4328) Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * influx CLI 2.4 release notes (#4267) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * influx CLI 2.4 release notes * Update content/influxdb/v2.4/reference/release-notes/influx-cli.md * update release notes with cli username/password support Co-authored-by: Andrew Depke <andrewdepke@gmail.com> * 2.4 Virtual DBRPs (#4342) * WIP auto-add dbrp * add dbrp management docs * Update replication docs for InfluxDB 2.4 (#4343) * update replication docs * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * port postman install update to 2.4 * port influx stacks init fix to all influxdb versions * API docs for 2.4 (#4357) * api docs for 2.4 * updated to latest swaggerV1Compat.yml * update edge.js * Oss 2.4 release notes (#4352) * added initial notes * added updates * updated the release notes * made a few updates, changed TBD * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * added date to influx-cli 2.4.0 release Co-authored-by: lwandzura <51929958+lwandzura@users.noreply.github.com> Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Sam Dillard <sam@influxdata.com>
2022-08-19 15:27:54 +00:00
---
Use tokens to authenticate requests to InfluxDB, including requests to write, query, and manage data and resources.
Authenticate requests using the [`influx` CLI](/influxdb/v2/reference/cli/influx/), API requests made with client libraries, and tools like `curl`.
InfluxDB OSS 2.4 (#4361) * created OSS 2.4 * port nav-item shortcode fixes to 2.4 * update set() example in influxdb faq * port schema exploration updates to 2.4 * replace indexDB with InfluxDB * OSS and Enterprise FAQ update (#4310) * add info about relative time ranges and task retries, closes influxdata/EAR#3415 * add delete faqs, closes influxdata/EAR#3412 * restructure enterprise faq, add entropy faq, closes influxdata/EAR#3364 * add faq about total query time, closes influxdata/EAR#3509 * port MQTT changes into influxdb 2.4 * Influx CLI 2.4 (#4340) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * Add users to an org as an owner and other fixes (#4258) * document adding users to an org as an owner and other fixes, closes #4171 * update content around owners * InfluxQL shell documentation (#4263) * added influx v1 shell command docs, closes #4173 * add influxql shell process docs, closes #4172 * add links to influxql shell process docs * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * feat: documented invokable scripts within tasks functionality in the CLI (#4295) * feat: documented invokable scripts within tasks functionality in the CLI * chore: added updated_in frontmatter * add information about cli configs with username/password (#4328) Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * influx CLI 2.4 release notes (#4267) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * influx CLI 2.4 release notes * Update content/influxdb/v2.4/reference/release-notes/influx-cli.md * update release notes with cli username/password support Co-authored-by: Andrew Depke <andrewdepke@gmail.com> * 2.4 Virtual DBRPs (#4342) * WIP auto-add dbrp * add dbrp management docs * Update replication docs for InfluxDB 2.4 (#4343) * update replication docs * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * port postman install update to 2.4 * port influx stacks init fix to all influxdb versions * API docs for 2.4 (#4357) * api docs for 2.4 * updated to latest swaggerV1Compat.yml * update edge.js * Oss 2.4 release notes (#4352) * added initial notes * added updates * updated the release notes * made a few updates, changed TBD * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * added date to influx-cli 2.4.0 release Co-authored-by: lwandzura <51929958+lwandzura@users.noreply.github.com> Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Sam Dillard <sam@influxdata.com>
2022-08-19 15:27:54 +00:00
### Add a token to a CLI request
```sh
influx write -t <token> -b BUCKET -o org-name <LINE PROTOCOL>
```
```
export INFLUX_TOKEN=my-token
influx write -t $INFLUX_TOKEN -b my-bucket -o my-org "measurement field=1"
```
{{% note %}}
See [here](/influxdb/v2/write-data/no-code/use-telegraf/auto-config/#configure-your-token-as-an-environment-variable)
InfluxDB OSS 2.4 (#4361) * created OSS 2.4 * port nav-item shortcode fixes to 2.4 * update set() example in influxdb faq * port schema exploration updates to 2.4 * replace indexDB with InfluxDB * OSS and Enterprise FAQ update (#4310) * add info about relative time ranges and task retries, closes influxdata/EAR#3415 * add delete faqs, closes influxdata/EAR#3412 * restructure enterprise faq, add entropy faq, closes influxdata/EAR#3364 * add faq about total query time, closes influxdata/EAR#3509 * port MQTT changes into influxdb 2.4 * Influx CLI 2.4 (#4340) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * Add users to an org as an owner and other fixes (#4258) * document adding users to an org as an owner and other fixes, closes #4171 * update content around owners * InfluxQL shell documentation (#4263) * added influx v1 shell command docs, closes #4173 * add influxql shell process docs, closes #4172 * add links to influxql shell process docs * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * feat: documented invokable scripts within tasks functionality in the CLI (#4295) * feat: documented invokable scripts within tasks functionality in the CLI * chore: added updated_in frontmatter * add information about cli configs with username/password (#4328) Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * influx CLI 2.4 release notes (#4267) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * influx CLI 2.4 release notes * Update content/influxdb/v2.4/reference/release-notes/influx-cli.md * update release notes with cli username/password support Co-authored-by: Andrew Depke <andrewdepke@gmail.com> * 2.4 Virtual DBRPs (#4342) * WIP auto-add dbrp * add dbrp management docs * Update replication docs for InfluxDB 2.4 (#4343) * update replication docs * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * port postman install update to 2.4 * port influx stacks init fix to all influxdb versions * API docs for 2.4 (#4357) * api docs for 2.4 * updated to latest swaggerV1Compat.yml * update edge.js * Oss 2.4 release notes (#4352) * added initial notes * added updates * updated the release notes * made a few updates, changed TBD * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * added date to influx-cli 2.4.0 release Co-authored-by: lwandzura <51929958+lwandzura@users.noreply.github.com> Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Sam Dillard <sam@influxdata.com>
2022-08-19 15:27:54 +00:00
to configure environment variables on Windows.
(Click on the **Windows** tab.)
{{% /note %}}
### Use CLI configurations
Automatically manage and use tokens from the CLI using [`influx config`](/influxdb/v2/reference/cli/influx/config/).
InfluxDB OSS 2.4 (#4361) * created OSS 2.4 * port nav-item shortcode fixes to 2.4 * update set() example in influxdb faq * port schema exploration updates to 2.4 * replace indexDB with InfluxDB * OSS and Enterprise FAQ update (#4310) * add info about relative time ranges and task retries, closes influxdata/EAR#3415 * add delete faqs, closes influxdata/EAR#3412 * restructure enterprise faq, add entropy faq, closes influxdata/EAR#3364 * add faq about total query time, closes influxdata/EAR#3509 * port MQTT changes into influxdb 2.4 * Influx CLI 2.4 (#4340) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * Add users to an org as an owner and other fixes (#4258) * document adding users to an org as an owner and other fixes, closes #4171 * update content around owners * InfluxQL shell documentation (#4263) * added influx v1 shell command docs, closes #4173 * add influxql shell process docs, closes #4172 * add links to influxql shell process docs * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * feat: documented invokable scripts within tasks functionality in the CLI (#4295) * feat: documented invokable scripts within tasks functionality in the CLI * chore: added updated_in frontmatter * add information about cli configs with username/password (#4328) Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * influx CLI 2.4 release notes (#4267) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * influx CLI 2.4 release notes * Update content/influxdb/v2.4/reference/release-notes/influx-cli.md * update release notes with cli username/password support Co-authored-by: Andrew Depke <andrewdepke@gmail.com> * 2.4 Virtual DBRPs (#4342) * WIP auto-add dbrp * add dbrp management docs * Update replication docs for InfluxDB 2.4 (#4343) * update replication docs * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * port postman install update to 2.4 * port influx stacks init fix to all influxdb versions * API docs for 2.4 (#4357) * api docs for 2.4 * updated to latest swaggerV1Compat.yml * update edge.js * Oss 2.4 release notes (#4352) * added initial notes * added updates * updated the release notes * made a few updates, changed TBD * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * added date to influx-cli 2.4.0 release Co-authored-by: lwandzura <51929958+lwandzura@users.noreply.github.com> Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Sam Dillard <sam@influxdata.com>
2022-08-19 15:27:54 +00:00
### Use a token in an API request
Use tokens in [API requests](/influxdb/v2/api-guide/api_intro/#authentication).
InfluxDB OSS 2.4 (#4361) * created OSS 2.4 * port nav-item shortcode fixes to 2.4 * update set() example in influxdb faq * port schema exploration updates to 2.4 * replace indexDB with InfluxDB * OSS and Enterprise FAQ update (#4310) * add info about relative time ranges and task retries, closes influxdata/EAR#3415 * add delete faqs, closes influxdata/EAR#3412 * restructure enterprise faq, add entropy faq, closes influxdata/EAR#3364 * add faq about total query time, closes influxdata/EAR#3509 * port MQTT changes into influxdb 2.4 * Influx CLI 2.4 (#4340) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * Add users to an org as an owner and other fixes (#4258) * document adding users to an org as an owner and other fixes, closes #4171 * update content around owners * InfluxQL shell documentation (#4263) * added influx v1 shell command docs, closes #4173 * add influxql shell process docs, closes #4172 * add links to influxql shell process docs * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * feat: documented invokable scripts within tasks functionality in the CLI (#4295) * feat: documented invokable scripts within tasks functionality in the CLI * chore: added updated_in frontmatter * add information about cli configs with username/password (#4328) Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * influx CLI 2.4 release notes (#4267) * feat: added CLI scripts documentation (#4223) * feat: added CLI scripts documentation * chore: address feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * chore: more feedback Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * moved scripts cli docs into 2.4 * influx CLI 2.4 release notes * Update content/influxdb/v2.4/reference/release-notes/influx-cli.md * update release notes with cli username/password support Co-authored-by: Andrew Depke <andrewdepke@gmail.com> * 2.4 Virtual DBRPs (#4342) * WIP auto-add dbrp * add dbrp management docs * Update replication docs for InfluxDB 2.4 (#4343) * update replication docs * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * port postman install update to 2.4 * port influx stacks init fix to all influxdb versions * API docs for 2.4 (#4357) * api docs for 2.4 * updated to latest swaggerV1Compat.yml * update edge.js * Oss 2.4 release notes (#4352) * added initial notes * added updates * updated the release notes * made a few updates, changed TBD * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.4/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * added date to influx-cli 2.4.0 release Co-authored-by: lwandzura <51929958+lwandzura@users.noreply.github.com> Co-authored-by: Andrew Depke <andrewdepke@gmail.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Sam Dillard <sam@influxdata.com>
2022-08-19 15:27:54 +00:00
### Use a token in Postman
Make authenticated requests with tokens [using Postman](/influxdb/v2/tools/postman/).