Is it possible to programmatically get a list of buckets in a script?

I need to apply the same window function to a measurement replicated across multiple buckets.

What I’d like to do is, get a list of all bucket names and then apply the window function iteratively in a “task” script.

Is this possible? I don’t see any obvious function call in the flux language to do this?

Hello @MPH1984,

Have you seen the buckets() function?

1 Like