getPrimaryIpAddress


SoftLayer_Resource_Metadata::getPrimaryIpAddress

The primary IP address for the resource

Description

The getPrimaryIpAddress method retrieves the primary IP address for the resource. For resources with a frontend network, the frontend IP address will be returned. For resources that have been provisioned with only a backend network, the backend IP address will be returned, as a frontend address will not exist.

Parameters

None

Required Headers

Optional Headers

  • None

Return Values

  • string
curl -g -u $SL_USER:$SL_APIKEY -X GET \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Resource_Metadata/{SoftLayer_Resource_MetadataID}/getPrimaryIpAddress'