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_get

Overview: Gets the details of firewall profile

fw_profile_get expects the following parameters:

  • profile_id - The identifier of the firewall profile.

Example:

$params = array(
    'profile_id'    => 81
);
$api->call('cloud.fw_profile_get', $params);

Output:

Array
(
    [id] => 81
    [user_id] => 14911
    [name] => MyProfile
    [description] => My firewall
    [rules] => Array
        (
            [177] => Array
                (
                    [profile_id] => 77
                    [remote_ip_prefix] =>
                    [direction] => ingress
                    [port_range_min] =>
                    [port_range_max] =>
                    [protocol] =>
                )

            [178] => Array
                (
                    [profile_id] => 77
                    [remote_ip_prefix] =>
                    [direction] => egress
                    [port_range_min] =>
                    [port_range_max] =>
                    [protocol] =>
                )

            [179] => Array
                (
                    [profile_id] => 77
                    [remote_ip_prefix] => 0.0.0.0/0
                    [direction] => ingress
                    [port_range_min] => 70
                    [port_range_max] => 70
                    [protocol] => TCP
                )

        )

)