Create Policy Rule
Creates a new policy rule.
Parameters
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. |
Example Output
{
"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