getActiveUsageRatePrices


SoftLayer_Product_Package::getActiveUsageRatePrices

Return the active usage rate prices for the current package.

Description

This method returns a collection of active usage rate SoftLayer_Product_Item_Price objects for the current package and specified datacenter. Optionally you can retrieve the active usage rate prices for a particular SoftLayer_Product_Item_Category by specifying a category code as the first parameter. This information is useful so that you can see “pay as you go” rates (if any) for the current package, location and optionally category.

Parameters

Name Type Description
locationId int Get the active usage rate prices associated with this location/datacenter
categoryCode string If provided, get the active usage rate prices for this category code

Required Headers

Optional Headers

Return Values

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