Skip to main content

Create Policy Rule

Creates a new policy rule.

Parameters

ParameterDescription
ActionSpecifies the action that the system takes when a rule is matched.
Destination IP AddressSpecifies a destination address against which the packet will be compared.
IP ProtocolSpecifies the IP protocol against which the packet will be compared.
NameThe name of the rule which will be created.
PartitionThe name of the partition in which the policy is located. The default is "Common".
Policy NameThe name of the policy for which the rule is intended to be created.
Source IP AddressSpecifies a source address against which the packet will be compared.
StatusSpecifies 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

Workflow LibraryPreview this Workflow on desktop