性能存储我们选择的存储大小为250/500GB,但通过REST API的IOPS中没有数据 [英] Performance storage We are selecting Storage size 250/500GB but no data in IOPS through REST API

查看:80
本文介绍了性能存储我们选择的存储大小为250/500GB,但通过REST API的IOPS中没有数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究性能存储.当我选择存储大小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和一些objectFiltersobjectMasks’, we can get some information to get valid"IOPS" according to存储空间"`.

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中没有数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆