getPublicVlan


SoftLayer_Hardware_Server::getPublicVlan

Retrieve the frontend VLAN for the primary IP address of the server

Description

Retrieve the frontend VLAN for the primary IP address of the server

Parameters

None

Required Headers

Optional Headers

Return Values

Error Handling

  • Throw the exception “No public network components found for hardware.” a server does not have any network components installed.
  • Throw the exception “No IP address found for public network component” if there is no primary IP address for the network components on a server.
  • Throw the exception “Unable to find a public subnet.” if there are no frontend subnets the network components are associated with.
curl -g -u $SL_USER:$SL_APIKEY -X GET \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Hardware_Server/{SoftLayer_Hardware_ServerID}/getPublicVlan'