getLargestAllowedSubnetCidr


SoftLayer_Account::getLargestAllowedSubnetCidr

Computes the number of available public secondary IP addresses, augmented by the provided number of hosts, before overflow of the allowed host to IP address ratio occurs. The result is aligned to the nearest subnet size that could be accommodated in full.

0 is returned if an overflow is detected.

The use of $locationId has been deprecated.

Description

Computes the number of available public secondary IP addresses, aligned to a subnet size.

Parameters

Name Type Description
numberOfHosts int Number of hosts to adjust the current server count by
locationId int Deprecated

Required Headers

Optional Headers

  • None

Return Values

  • int
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [int, int]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Account/getLargestAllowedSubnetCidr'