> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Custom Ruleset

Get a specific custom firewall ruleset by ID, scoped to either an account or a zone.

<Note>
  External Documentation

  To learn more, visit the [Cloudflare documentation](https://developers.cloudflare.com/api/resources/rulesets/methods/get/).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter          | Description                                                                           |
  | ------------------ | ------------------------------------------------------------------------------------- |
  | Account or Zone ID | The account ID or zone ID that the ruleset belongs to, matching the selected `Scope`. |
  | Ruleset ID         | The unique ID of the ruleset to retrieve.                                             |
  | Scope              | Select whether the ruleset belongs to an account or a zone.                           |
</div>

## Example Output

```json theme={"dark"}
{
	"result": {
		"id": "<RULESET_ID>",
		"name": "Zone-level phase entry point",
		"description": "Executes a managed ruleset.",
		"kind": "zone",
		"version": "3",
		"rules": [
			{
				"id": "<RULE_ID>",
				"version": "1",
				"action": "execute",
				"expression": "true",
				"action_parameters": {
					"id": "<MANAGED_RULESET_ID>"
				},
				"last_updated": "2025-03-17T15:42:37.917815Z"
			}
		],
		"last_updated": "2025-03-17T15:42:37.917815Z",
		"phase": "http_request_firewall_managed"
	},
	"success": true,
	"errors": [],
	"messages": []
}
```

## Workflow Library Example

[Get Custom Ruleset with Cloudflare and Send Results Via Email](https://library.blinkops.com/workflows/get-custom-ruleset-with-cloudflare-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-custom-ruleset-with-cloudflare-and-send-results-via-email/canvas" />
</div>
