# List acc/org/proj protection rules Endpoint: GET /code/api/v1/rules Version: 1.0 Security: x-api-key ## Query parameters: - `accountIdentifier` (string, required) Account Identifier for the Entity. - `orgIdentifier` (string) Organization Identifier for the Entity. - `projectIdentifier` (string) Project Identifier for the Entity. - `query` (string) The substring by which the repository protection rules are filtered. - `type` (array) The types of rules to include. Enum: "branch", "tag", "push" - `order` (string) The order of the output. Enum: "asc", "desc" - `sort` (string) The field by which the protection rules are sorted. Enum: "created_at", "identifier", "uid", "updated_at" - `page` (integer) The page to return. - `limit` (integer) The maximum number of results to return. - `inherited` (boolean) The result should inherit entities from parent spaces. ## Response 200 fields (application/json): - `created` (integer) - `created_by` (object,null) - `created_by.display_name` (string) - `created_by.email` (string) - `created_by.id` (integer) - `created_by.type` (string) Enum: "service", "serviceaccount", "user" - `created_by.uid` (string) - `created_by.updated` (integer) - `definition` (object) - `description` (string) - `identifier` (string) - `pattern` (object,null) - `pattern.default` (boolean) - `pattern.exclude` (array) - `pattern.include` (array) - `repo_target` (object,null) - `repositories` (object,null) - `scope` (integer) - `state` (string,null) Enum: "active", "disabled", "monitor" - `user_groups` (object,null) - `users` (object,null) ## Response 401 fields (application/json): - `message` (string) - `values` (object) ## Response 403 fields (application/json): - `message` (string) - `values` (object) ## Response 404 fields (application/json): - `message` (string) - `values` (object) ## Response 500 fields (application/json): - `message` (string) - `values` (object)