getHostname


SoftLayer_Resource_Metadata::getHostname

A resource’s hostname

Description

The getHostname method retrieves the hostname for the resource.

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}/getHostname'