getDatacenterId


SoftLayer_Resource_Metadata::getDatacenterId

The id for the datacenter which the resource is in

Description

The getDatacenterId retrieves the ID for the datacenter in which the resource is located.

Parameters

None

Required Headers

Optional Headers

  • None

Return Values

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