diff --git a/content/influxdb/v2.0/query-data/influxql.md b/content/influxdb/v2.0/query-data/influxql.md index 491ec2510..de33d4d48 100644 --- a/content/influxdb/v2.0/query-data/influxql.md +++ b/content/influxdb/v2.0/query-data/influxql.md @@ -59,6 +59,10 @@ _See [DBRP mapping](/influxdb/v2.0/reference/api/influxdb-1x/dbrp/) for more inf If you use the 1.x compatibility API to write data into InfluxDB 2.0, the database and retention policy included as query parameters were mapped to a bucket. For more detail, see [Database and retention policy mapping](/influxdb/v2.0/reference/api/influxdb-1x/dbrp/). {{% /note %}} +{{% /note %}} +The mapping is automatically created only if you use the [1.x `/write` compatibility endpoint](/influxdb/v2.0/reference/api/influxdb-1x/write/). If you used the 2.x write API and want to access that data using InfluxQL, you'll need to create a mapping. To review existing mappings, use the [`GET DBRPs` CURL command](/influxdb/v2.0/api/#operation/GetDBRPs). +{{% /note %}} + ### Map a bucket to a database and retention policy If you have an existing bucket that does't follow the **database/retention-policy** diff --git a/content/influxdb/v2.0/reference/api/influxdb-1x/dbrp.md b/content/influxdb/v2.0/reference/api/influxdb-1x/dbrp.md index da79928d8..308e2ebe8 100644 --- a/content/influxdb/v2.0/reference/api/influxdb-1x/dbrp.md +++ b/content/influxdb/v2.0/reference/api/influxdb-1x/dbrp.md @@ -58,6 +58,13 @@ To automatically create new buckets, the authentication token used for the write request must be an **All Access token**. {{% /note %}} + {{% note %}} +To automatically create new buckets, the authentication token used for the +write request must be an **All Access token**. + {{% /note %}} + +For step-by-step instructions on mapping a bucket to a database and retention policy, see [Query data with InfluxQL](/influxdb/v2.0/query-data/influxql). + ### When querying data When querying data from InfluxDB 2.0 using the [`/query` compatibility endpoint](/influxdb/v2.0/reference/api/influxdb-1x/query/), the DBRP mapping service checks for the specified database and retention policy