Hardware
SoftLayer_Hardware_Server::getPublicVlanByHostname

Overview

Retrieve the frontend network Vlan by searching the hostname of a server

Parameters

hostname

string

The hostname for a server, example: www.server.com

Headers

SoftLayer_Hardware_ServerObjectMask, SoftLayer_ObjectMask
authenticate

Return Values

SoftLayer_Network_Vlan

Error Handling

  • SoftLayer_Exception: Throw the exception "You must supply a valid hostname. Example: www.domain.com" if an invalid hostname was provided.
  • SoftLayer_Exception: Throw the exception "Unable to find hardware with the hostname of '{host}.{domain}'" if there is no server with the hostname provided.