getPublicVlanByHostname


SoftLayer_Hardware_Server::getPublicVlanByHostname

Retrieve the frontend VLAN by a server’s hostname.

Description

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

Parameters

Name Type Description
hostname string The hostname for a server, example: www.server.com

Required Headers

Optional Headers

Return Values

Error Handling

  • Throw the exception “You must supply a valid hostname. Example: www.domain.com” if an invalid hostname was provided.
  • Throw the exception “Unable to find hardware with the hostname of ‘{host}.{domain}’” if there is no server with the hostname provided.
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Hardware_Server/getPublicVlanByHostname'