I am working on performance storage. When I am selecting Storage Size 250/500 then no data In IOPS. When I was select storage size 100/20/80/1000/2000gb
then I am getting IOPS. I am facing problem only 250/500gb
. this is the API i am using
https://[username]:[apikey]@api.softlayer.com/rest/v3.1/SoftLayer_Product_Package/222/getItemPrices?objectFilter={"itemPrices": { "attributes": { "value": { "operation": 20 } }, "categories": { "categoryCode": { "operation": "performance_storage_iops" } }, "locationGroupId": { "operation": "is null" } } }
I am sending screenshot when i was select storage size 50/500gb
what I am getting response. So could you kindly provide the information to me.
I already answered this here, If you see the result you will notice that it contains "capacityRestrictionMinimum" and "capacityRestrictionMaximum" that means that those IOPS are valid for storage size from 100 to 1000. if do not believe me (I think that is the case) try using those IOPS in an order using the verifyOrder method.
As I understand, you want to retrieve IOPS item prices according the storage size, aren't you?
If that is the case, there is not possible retrieve these kind of data using REST, because we need to apply a filter with a range between "capacityRestrictionMaximum" and "capacityRestrictionMinimum". These data are returned as String datatype, and it's not possible to apply a filter between integers (storage type) and strings.
However, this can be possible using a programming language, try the following Python script:
See the following link, to get more information about programming languages supported by SoftLayer:
http://sldn.softlayer.com/
I hope it really helps you
Using
“SoftLayer_Product_Package::getItemPrices”
with someobjectFilters
andobjectMasks’, we can get some information to get valid
“IOPS”according to
“Storage Space”`.The "attributes" property will show you a range of capacity of "GB Storage Space" (minimum/maximum "GB" supported), but not a specific value like "250/500GB".
We execute the below request to get valid “IOPS” according to “Storage Space”:
The response will display an amount of items. But, what of them do we have to choose?
In my response, the
price_id
to select is this one:Why?
Because, the item with
"description:1200 IOPS"
, is into range[100 - 1000 GB STORAGE_SPACE]. In our case the configuration is:“Storage Size: 500GB”
I hope this information help you.