On this page, there is a note for ‘Map databases and retention policies to buckets’, but if you follow the link, it says:
In InfluxDB Cloud Serverless, the concepts of database and retention policy have been merged into buckets, where buckets have a retention period, but retention policies are no longer part of the data model.
There seem to be various versions of InfluxDB (including the InfluxDB storage engine) and the HTTP API. Is it possible that InfluxDB Cloud Serverless (InfluxDB 3.0) uses an InfluxDB v1 or v2 HTTP API?
There are multiple APIs and InfluxDB Cloud Serverless supports the v1, v2, and v3 APIs in limited ways. For example, it supports all v1, v2, and v3 write APIs, but only v1 (InfluxQL) and v3 (SQL) query APIs.
InfluxQL still expects a database and retention policy to be specified in the query request or in the query itself. For example:
SELECT * FROM db.rp.measurement
InfluxQL itself doesn’t know about the change of the underlying data model. It just works based on patterns established in InfluxDB v1. So you have to map a db/rp combination to point to the correct bucket to query.
If you have the v2 influx CLI installed, you can use the following command to create the DBRP mapping: