get_deployments
Retrieve Prefect deployments with optional filters for status, tags, or names. Use compact summaries by default or full details with specific IDs.
Instructions
Get deployments with optional filters.
Returns compact summaries by default. Filter by specific ID(s) for full detail including parameters, parameter_openapi_schema, job_variables, work_pool details, and recent_runs.
Filter operators:
any_: Match any value in list
all_: Match all values
like_: SQL LIKE pattern matching
not_any_: Exclude values
is_null_: Check for null/not null
eq_/ne_: Equality comparisons
Examples: - List all deployments: get_deployments() - Full detail: get_deployments(filter={"id": {"any_": [""]}}) - Active deployments: get_deployments(filter={"paused": {"eq_": False}}) - Production deployments: get_deployments(filter={"tags": {"all_": ["production"]}})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of deployments to return | |
| filter | No | JSON filter object for advanced querying. Supports all Prefect DeploymentFilter fields. | |
| workspace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| error | Yes | ||
| detail | No | ||
| success | Yes | ||
| deployments | Yes |