Buckets (v2 compatible)
/api/v2/buckets
v2List buckets (v2 compatible)
curl --request GET \
"http://localhost:8086/api/v2/buckets" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
buckets
object[]error
required
string/api/v2/buckets
v2Create bucket (v2 compatible)
Request body required
application/jsonname
required
stringretentionRules
object[]everySeconds
integertype
stringexpirecurl --request POST \
"http://localhost:8086/api/v2/buckets" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"name": "NAME",
"retentionRules": []
}'Responses
id
stringname
stringretentionRules
object[]everySeconds
integertype
stringexpireerror
required
string/api/v2/buckets/{bucketID}
v2Delete bucket (v2 compatible)
database/retention-policy.Parameters
Path parameters
bucketID
required
stringdatabase/retention-policycurl --request DELETE \
"http://localhost:8086/api/v2/buckets/{bucketID}" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
error
required
stringerror
required
stringWas this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB Enterprise v1 and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.