getVlanForIpAddress


SoftLayer_Network_Vlan::getVlanForIpAddress

The VLAN on which the given IP address is routed.

Description

Retrieves the VLAN on which the given IP address is routed.

Parameters

Name Type Description
ipAddress string The IP address to search for.

Required Headers

Optional Headers

Return Values

Error Handling

  • Throw the error “You must provide a valid IP address.” if the given IP address is not a valid IPv4 address.
  • Throw the error “Unable to determine a VLAN for the specified IP address” if a VLAN cannot be found.

Associated Methods

curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Vlan/getVlanForIpAddress'