Retrieve an IP addresses’s associated subnet.
Description
Retrieve the subnet associated with an IP address. You may only retrieve subnets assigned to your SoftLayer customer account.
Parameters
Name |
Type |
Description |
ipAddress |
string |
The IP address to search for. |
Required Headers
Optional Headers
Return Values
Error Handling
- Throw the exception “You must provide a valid IP address.” if the ‘‘ipAddress’’ parameter is not a valid IP address.
- Throw the exception “Unable to determine a subnet for the specified address of {ipAddress}” if the API is unable to locate a subnet associated with the given IP address.
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Subnet/getSubnetForIpAddress'