API Docs

This functionality of the Ubiquity API has been disabled. Looking for information on this transition to LeaseWeb? Click here for answers to FAQs and here for information on the LeaseWeb customer portal. Click here for information about the Leaseweb API.

Get to know fw_profile_rule_update

Overview: Updates a firewall profile rule

fw_profile_rule_update expects the following parameters:

  • profile_rule_id - The identifier of the profile rule
  • direction - "ingress" or "egress" (Required)
  • remote_ip_prefix - Valid CIDR, null, or '0.0.0.0/0' to match all (Optional)
  • port_range_min - 1-65535 or null (Optional)
  • port_range_max - 1-65535 or null (Optional)
  • protocol - TCP, UDP, ICMP, or null (Optional)

Example:

$params = array(
    'profile_rule_id'   => 77,
    'port_range_min'    => 8080,
    'port_range_max'    => 8080
);
$api->call('cloud.fw_profile_rule_update', $params);

Output:

Array
(
    [profile_rule_id] => 77
    [port_range_min] => 8080
    [port_range_max] => 8080
)