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 enable_switch_port

Overview: enable_switch_port immediately enables the public switch ports of the provided device.

enable_switch_port expects the following parameters:

  • device_id – The identifier of a device.

NOTE: This function returns the number of ports affected in the data field.

Example:

$params = array(
	'device_id' => 1
);
$api->call('device.enable_switch_port', $params);

Output:

Array
	(
	    [status] => 1
	    [data] => 1
	)