Properties
| Property | Type | Description |
|---|---|---|
| precedence | String | The precedence of operations (i. |
Methods
| Method | Returns | Description |
|---|---|---|
| add() | Config1_IPFilterRule | Adds an IP filter rule. |
| get() | Config1_IPFilterRule | Returns an Config1_IPFilterRule object for the given ID. |
| remove() | void | Deletes the given IP filter rule. |
| toArray() | Array.<Config1_IPFilterRule> | Returns an array of Config1_IPFilterRule objects representing all existing IP filter rules. |
Property Details
precedence :String
- Description:
The precedence of operations (i.e. 'DenyOverAllow' or 'AllowOverDeny').
The precedence of operations (i.e. 'DenyOverAllow' or 'AllowOverDeny').
Type:
- String
Method Details
add(action, hostopt, useropt) → {Config1_IPFilterRule}
- Description:
Adds an IP filter rule.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
action |
String | The action of the rule (i.e. 'Deny', 'Allow' or 'AllowAlways'). |
||
host |
String |
<optional> |
All
|
The mask of the rule. Rules with no mask defined apply to al IP addresses. |
user |
String | Config1_User |
<optional> |
none
|
Name or a Config1_User object of the user that the rule applies to. Rules with no user defined apply to all users. |
Returns:
- Type
- Config1_IPFilterRule
get(id) → {Config1_IPFilterRule}
- Description:
Returns an Config1_IPFilterRule object for the given ID.
Parameters:
| Name | Type | Description |
|---|---|---|
id |
String | ID of the IP filter rule. |
Returns:
- Type
- Config1_IPFilterRule
remove(id)
- Description:
Deletes the given IP filter rule.
Parameters:
| Name | Type | Description |
|---|---|---|
id |
String | Config1_IPFilterRule | ID or an Config1_IPFilterRule object of the rule to be deleted. |
toArray() → {Array.<Config1_IPFilterRule>}
- Description:
Returns an array of Config1_IPFilterRule objects representing all existing IP filter rules.
Returns:
- Type
- Array.<Config1_IPFilterRule>