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 disable_switch_port

Overview: disable_switch_port immediately disables the public switch ports of the provided device.

disable_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.


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


	    [status] => 1
	    [data] => 1