25 lines
723 B
Markdown
25 lines
723 B
Markdown
---
|
|
title: buckets() function
|
|
description: The `buckets()` function returns a list of buckets in the organization.
|
|
aliases:
|
|
- /influxdb/v2.0/reference/flux/functions/inputs/buckets
|
|
- /influxdb/v2.0/reference/flux/functions/built-in/inputs/buckets/
|
|
- /influxdb/v2.0/reference/flux/stdlib/built-in/inputs/buckets/
|
|
- /influxdb/cloud/reference/flux/stdlib/built-in/inputs/buckets/
|
|
menu:
|
|
flux_0_x_ref:
|
|
name: buckets
|
|
parent: universe
|
|
weight: 102
|
|
flux/v0.x/tags: [metadata]
|
|
related:
|
|
- /{{< latest "influxdb" "v1" >}}/query_language/explore-schema/#show-databases, InfluxQL - SHOW DATABASES]()
|
|
introduced: 0.16.0
|
|
---
|
|
|
|
The `buckets()` function returns a list of buckets in the organization.
|
|
|
|
```js
|
|
buckets()
|
|
```
|