SoftLayer Hardware Server::setPrivateNetworkInterfaceSpeed

From SoftLayer Development Network Wiki

Jump to: navigation, search

setPrivateNetworkInterfaceSpeed is a member of the SoftLayer_Hardware_Server service.

Contents

Overview

Sets the private network interface speed to the new speed. Speed values can only be 0 (Disconnect), 10, 100, and 1000. The new speed must be equal to or less than the max speed of the interface.

It will take less than a minute to update the switch port speed. The server uplink will not be operational again until the server interface speed is updated.

User Access

Users wishing to execute setPrivateNetworkInterfaceSpeed must have the following permissions assigned to their account:

  • Manage Port Control
  • View Hardware Details

Return Type

setPrivateNetworkInterfaceSpeed returns the bool data type.

Headers

Required Headers

setPrivateNetworkInterfaceSpeed requires the following headers set:

Parameters

setPrivateNetworkInterfaceSpeed takes the following parameters:

newSpeed

New speed for private network component

  • type: int

Error Handling

setPrivateNetworkInterfaceSpeed throws the following exceptions:

  • SoftLayer_Exception_Public
Throws the exception 'Speed cannot be null and must be 0 (Disconnect), 10, 100, or 1000.' when the parameter being passed in is null.
  • SoftLayer_Exception_Public
Throws the exception 'You do not have permission to this service.' when a user does not have permission to Manage Port Control.
  • SoftLayer_Exception_Public
Throws the exception 'There is currently an outstanding transaction for this server.' when there is a current hardware update.
  • SoftLayer_Exception_Public
Throws the exception 'Speed must be 0 (Disconnect), 10, 100, or 1000.' when the speed being passed in is not in the list of accepted speeds.
  • SoftLayer_Exception_Public
Throws the exception 'You cannot set interface speed greater than max speed.' when the new speed is greater than the current max speed of the private interface.
Personal tools