> ## 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.

# List IP Access Rules

List the IP Access rules configured for an account or a zone.

<Note>
  External Documentation

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

## Basic Parameters

<div className="integrations-table">
  | Parameter            | Description                                                                                  |
  | -------------------- | -------------------------------------------------------------------------------------------- |
  | Account or Zone ID   | The account ID or zone ID that the IP Access rules belong to, matching the selected `Scope`. |
  | Configuration Target | Select the target type to search by.                                                         |
  | Configuration Value  | The target value to search for, matching the selected `Configuration Target`.                |
  | Mode                 | Select the rule action to filter results by.                                                 |
  | Notes                | The query to search for in the rule notes.                                                   |
  | Return All Pages     | Automatically fetch all resources, page by page.                                             |
  | Scope                | Select whether the IP Access rules belong to an account or a zone.                           |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter  | Description                                                        |
  | ---------- | ------------------------------------------------------------------ |
  | Match      | Select whether rules must match all or any of the filter criteria. |
  | Order      | Select the field to sort the results by.                           |
  | Page       | The page number to show results from.                              |
  | Per Page   | Maximum number of results per page.                                |
  | Sort Order | Select the direction to sort the results by.                       |
</div>

## Example Output

```json theme={"dark"}
{
	"success": true,
	"errors": [],
	"messages": [],
	"result": [
		{
			"id": "92f17202ed8bd63d69a66b86a49a8f6b",
			"allowed_modes": [
				"whitelist",
				"block",
				"challenge",
				"js_challenge",
				"managed_challenge"
			],
			"configuration": {
				"target": "ip",
				"value": "198.51.100.4"
			},
			"mode": "challenge",
			"created_on": "2014-01-01T05:20:00.12345Z",
			"modified_on": "2014-01-01T05:20:00.12345Z",
			"notes": "Security event mitigation rule",
			"scope": {
				"id": "023e105f4ecef8ad9ca31a8372d0c353",
				"email": "user@example.com",
				"type": "user"
			}
		}
	],
	"result_info": {
		"count": 1,
		"page": 1,
		"per_page": 20,
		"total_count": 2000
	}
}
```

## Workflow Library Example

[List Ip Access Rules with Cloudflare and Send Results Via Email](https://library.blinkops.com/workflows/list-ip-access-rules-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/list-ip-access-rules-with-cloudflare-and-send-results-via-email/canvas" />
</div>
