getItemAvailabilityTypes


SoftLayer_Product_Package::getItemAvailabilityTypes

Returns a collection of SoftLayer_Product_Item_Attribute_Type objects.

Description

Returns a collection of SoftLayer_Product_Item_Attribute_Type objects. These item attribute types specifically deal with when an item, SoftLayer_Product_Item, from the product catalog may no longer be available. The keynames for these attribute types start with ‘UNAVAILABLE_AFTER_DATE_’, where the ‘’ may represent any string. For example, ‘UNAVAILABLE_AFTER_DATE_NEW_ORDERS’, signifies that the item is not available for new orders. There is a catch all attribute type, ‘UNAVAILABLE_AFTER_DATE_ALL’. If an item has one of these availability attributes set, the value should be a valid date in MM/DD/YYYY, indicating the date after which the item will no longer be available.

Parameters

None

Required Headers

Optional Headers

Return Values

Error Handling

  • Throws the exception ‘Unable to locate billing item.’ when the billing item cannot be determined.
curl -g -u $SL_USER:$SL_APIKEY -X GET \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Product_Package/getItemAvailabilityTypes'