问题描述
我正在研究性能存储.当我选择存储大小 250/500 时,IOPS 中没有数据.当我选择存储大小 100/20/80/1000/2000gb
时,我得到了 IOPS.我只面临 250/500gb
的问题.这是我正在使用的 API
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" } } }
我在选择存储大小时发送屏幕截图 50/500gb
我得到的响应.麻烦你把信息提供给我.
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.
推荐答案
使用 SoftLayer_Product_Package::getItemPrices"
和一些 objectFilters
和 objectMasks',我们可以获取一些信息以获得有效的
IOPS"根据
存储空间"`.
Using "SoftLayer_Product_Package::getItemPrices"
with some objectFilters
and objectMasks’, we can get some information to get valid
"IOPS"according to
"Storage Space"`.
属性"属性将显示GB 存储空间"的容量范围(支持的最小/最大GB"),但不是250/500GB"等特定值.
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".
我们执行以下请求以根据存储空间"获得有效的IOPS":
We execute the below request to get valid "IOPS" according to "Storage Space":
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Product_Package/222/getItemPrices?objectMask=mask[id,item[keyName,description],pricingLocationGroup[locations[id, name, longName]],categories.categoryCode,attributes[itemPriceAttributeType.keyname,value]]&objectFilter={ "itemPrices": { "item": { "description": { "operation": "1200 IOPS" } }, "categories": { "categoryCode": { "operation": "performance_storage_iops" } }, "locationGroupId": { "operation": "is null" } } }
Method: GET
响应将显示一定数量的项目.但是,我们必须选择哪一个?
The response will display an amount of items. But, what of them do we have to choose?
在我的回复中,要选择的 price_id
是这个:
In my response, the price_id
to select is this one:
{
"id": 41608,
"attributes": [
{
"value": "100",
"itemPriceAttributeType": {
"keyname": "CAPACITY_RESTRICTION_MIN"
}
},
{
"value": "1000",
"itemPriceAttributeType": {
"keyname": "CAPACITY_RESTRICTION_MAX"
}
},
{
"value": "STORAGE_SPACE",
"itemPriceAttributeType": {
"keyname": "CAPACITY_RESTRICTION_TYPE"
}
}
],
"categories": [
{
"categoryCode": "performance_storage_iops"
}
],
"item": {
"description": "1200 IOPS",
"keyName": "1200_IOPS_3"
}
}
为什么?
因为带有 "description:1200 IOPS"
的项目在 [100 - 1000 GB STORAGE_SPACE] 范围内.在我们的例子中,配置是:Storage Size: 500GB"
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.
这篇关于性能存储我们选择存储大小为 250/500GB 但通过 REST API IOPS 中没有数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!