pull/500/head
parent
f474f21c1e
commit
f10f52d17b
|
@ -15,14 +15,30 @@ Access the InfluxDB API using the `/api/v2/` endpoint.
|
||||||
InfluxDB uses [authentication tokens](/v2.0/security/tokens/) to authorize API requests.
|
InfluxDB uses [authentication tokens](/v2.0/security/tokens/) to authorize API requests.
|
||||||
Include your authentication token as an `Authorization` header in each request.
|
Include your authentication token as an `Authorization` header in each request.
|
||||||
|
|
||||||
|
{{< code-tabs-wrapper >}}
|
||||||
|
{{% code-tabs %}}
|
||||||
|
[InfluxDB OSS](#)
|
||||||
|
[InfluxDB Cloud](#)
|
||||||
|
{{% /code-tabs %}}
|
||||||
|
{{% code-tab-content %}}
|
||||||
```sh
|
```sh
|
||||||
curl --request GET \
|
curl --request POST \
|
||||||
--url http://localhost:9999/api/v2/ \
|
--url http://localhost:9999/api/v2/write?org=my-org&bucket=example-bucket \
|
||||||
--header 'Authorization: Token YOURAUTHTOKEN'
|
--header 'Authorization: Token YOURAUTHTOKEN'
|
||||||
```
|
```
|
||||||
|
{{% /code-tab-content %}}
|
||||||
|
{{% code-tab-content %}}
|
||||||
|
```sh
|
||||||
|
# Use the hostname of your InfluxDB Cloud UI
|
||||||
|
curl --request POST \
|
||||||
|
--url https://us-west-2-1.aws.cloud2.influxdata.com/api/v2/write?org=my-org&bucket=example-bucket \
|
||||||
|
--header 'Authorization: Token YOURAUTHTOKEN'
|
||||||
|
```
|
||||||
|
{{% /code-tab-content %}}
|
||||||
|
{{< /code-tabs-wrapper >}}
|
||||||
|
|
||||||
## View Influx v2 API Documentation
|
## View Influx v2 API Documentation
|
||||||
|
View the
|
||||||
<a class="btn" href="/v2.0/api/">InfluxDB v2.0 API documentation</a>
|
<a class="btn" href="/v2.0/api/">InfluxDB v2.0 API documentation</a>
|
||||||
|
|
||||||
### View InfluxDB API documentation locally
|
### View InfluxDB API documentation locally
|
||||||
|
|
Loading…
Reference in New Issue