Channels
announcements
ask-marvin
best-practices-coordination-plane
data-ecosystem
data-tricks-and-tips
events
find-a-prefect-job
geo-bay-area
geo-berlin
geo-boston
geo-chicago
geo-colorado
geo-dc
geo-israel
geo-japan
geo-london
geo-nyc
geo-seattle
geo-texas
gratitude
introductions
marvin-in-the-wild
pacc-clearcover-june-12-2023
pacc-may-31-2023
ppcc-may-16-2023
prefect-ai
prefect-aws
prefect-azure
prefect-cloud
prefect-community
prefect-contributors
prefect-dbt
prefect-docker
prefect-gcp
prefect-getting-started
prefect-integrations
prefect-kubernetes
prefect-recipes
prefect-server
prefect-ui
random
show-us-what-you-got
Powered by
Title
j
James Ashby
03/20/2023, 9:52 PM
Hey everyone! Does anyone know a way to use Python to get a list of all JSON blocks from my Prefect Cloud workspace? I want a list of all the names, assuming I don't know any.
✅ 1
r
redsquare
03/20/2023, 10:03 PM
use prefect client and read_block_documents()
:thank-you: 1
orion is now server
https://discourse.prefect.io/t/how-can-i-list-all-blocks-across-my-workspaces/2002
j
James Ashby
03/20/2023, 10:06 PM
Great, thanks! Dunno why this wasn't coming up in my searches...
r
redsquare
03/20/2023, 10:09 PM
helps if you google prefect 2.0+bla
👍 1
#prefect-community
Join Slack