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

# Create Policy Rule

Creates a new policy rule.

## Parameters

<div className="integrations-table">
  | Parameter              | Description                                                                                                                            |
  | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
  | Action                 | Specifies the action that the system takes when a rule is matched.                                                                     |
  | Destination IP Address | Specifies a destination address against which the packet will be compared.                                                             |
  | IP Protocol            | Specifies the IP protocol against which the packet will be compared.                                                                   |
  | Name                   | The name of the rule which will be created.                                                                                            |
  | Partition              | The name of the partition in which the policy is located. The default is "Common".                                                     |
  | Policy Name            | The name of the policy for which the rule is intended to be created.                                                                   |
  | Source IP Address      | Specifies a source address against which the packet will be compared.                                                                  |
  | Status                 | Specifies whether the rule is enabled or disabled. A rule that is enabled is always checked. A rule that is disabled is never checked. |
</div>

## Example Output

```json theme={"dark"}
{
	"kind": "tm:security:firewall:policy:rules:rulesstate",
	"name": "rule5",
	"fullPath": "rule5",
	"generation": 134,
	"selfLink": "https://localhost/mgmt/tm/security/firewall/policy/~Common~test-api/rules/rule5?ver=14.1.5.3",
	"action": "accept",
	"ipProtocol": "any",
	"iruleSampleRate": 1,
	"log": "no",
	"ruleNumber": "5",
	"status": "enabled",
	"destination": {
		"addresses": [
			{
				"name": "0.0.0.0"
			}
		]
	},
	"source": {
		"identity": {},
		"addresses": [
			{
				"name": "0.0.0.0"
			}
		]
	}
}
```

## Workflow Library Example

[Create Policy Rule with F5 Big Ip and Send Results Via Email](https://library.blinkops.com/workflows/create-policy-rule-with-f5-big-ip-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/create-policy-rule-with-f5-big-ip-and-send-results-via-email/canvas" />
</div>
