1.7 KiB
| title | description | menu | weight | aliases | influxdb/v2.0/tags | products | related | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| InfluxDB 1.x compatibility API | placeholder |
|
104 |
|
|
|
|
The InfluxDB v2 API includes InfluxDB 1.x compatibility endpoints that work with InfluxDB 1.x client libraries and third-party integrations like Grafana and others.
Authentication
InfluxDB 2.0 requires all query and write requests to be authenticated. Use basic authentication or token authentication to authenticate requests to InfluxDB 1.x compatibility endpoints.
Basic Authentication
Basic authentications requires the following credentials:
- username: InfluxDB username
- password: InfluxDB authentication token
There are multiple ways to provide basic authentication credentials.
The example below uses the Authorization header with the Basic scheme to
provide the required credentials:
Basic authentication with authorization header
# Header syntax
Authorization: Basic <username>:<password>
# Header example
Authorization: Basic admin:mYSuP3rs3cREtT0k3N
Token Authentication
Token authentication requires the following credential:
- token: InfluxDB authentication token
Use the Authorization header with the Token scheme to provide your
authentication token to InfluxDB.
Token authentication with authorization header
# Header syntax
Authorization: Token <token>
# Header example
Authorization: Token mYSuP3rs3cREtT0k3N
Compatibility endpoints
{{< children readmore=true >}}