Address PR feedback

pull/1592/head
noramullen1 2020-10-01 09:21:53 -07:00
parent be05c069a8
commit a0f8e6087d
2 changed files with 11 additions and 0 deletions

View File

@ -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/). 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 %}}
{{% /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 ### Map a bucket to a database and retention policy
If you have an existing bucket that does't follow the **database/retention-policy** If you have an existing bucket that does't follow the **database/retention-policy**

View File

@ -58,6 +58,13 @@ To automatically create new buckets, the authentication token used for the
write request must be an **All Access token**. write request must be an **All Access token**.
{{% /note %}} {{% /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
When querying data from InfluxDB 2.0 using the [`/query` compatibility endpoint](/influxdb/v2.0/reference/api/influxdb-1x/query/), 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 the DBRP mapping service checks for the specified database and retention policy