---
title: "list all protection rules for a workspace"
method: GET
path: "/w/{workspace}/workspaces/protection_rules"
tags: ["workspace"]
---

# list all protection rules for a workspace

`GET /w/{workspace}/workspaces/protection_rules`

## Path parameters

- `workspace` string, required

## Response `200`

list of protection rules

- ProtectionRuleset[]
  - `name` string, required — Unique name for the protection rule
  - `workspace_id` string
  - `rules` ProtectionRuleKind[], required — Configuration of protection restrictions
  - `bypass_groups` string[], required — Groups that can bypass this ruleset
  - `bypass_users` string[], required — Users that can bypass this ruleset

## Changes

> 176 revisions in range; 4 could not be searched.

- **2026-08-06** `966123aa8b8b` — 1 warning
  - added the new `RestrictPublicRunSharing` enum value to the `items/rules/items/` response property for the response status `200`

[Change history](https://skmtc.dev/windmill/apis/windmill-api/changes/w/:workspace/workspaces/protection_rules/get.md)

---

[API](https://skmtc.dev/windmill/apis/windmill-api.md) · [All operations](https://skmtc.dev/windmill/apis/windmill-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/windmill/windmill-api/revisions/7b281701c340/schema)
