Hi Everyone, Is there a way to export a report fro...
# ask-community
r
Hi Everyone, Is there a way to export a report from Prefect Cloud listing all the scheduled flows, and flow deployments?
n
hi @Robert Esteves - there's no "one-click" way to do this, but you could use the client to read resources pretty easily and generate a report
Copy code
from prefect import get_client

report = {}

async with get_client() as client:
  deployments = await client.read_deployments()
  report.update({"deployments": deployments})
  ...
etc
r
Thanks Nate, I will give it a try.
n
sure thing. one other thing i'd mention is that jinja comes with prefect as a dependency so using that might be helpful as well (example)