IOPS值ID和Endurance Storage中的Storage Size ID之间的关系是什么? [英] What is relationShip between IOPS values Id and in Storage Size ID in Endurance Storage .?

查看:53
本文介绍了IOPS值ID和Endurance Storage中的Storage Size ID之间的关系是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在订购耐力赛时感到困惑.由于我们具有Storage Package的这三个值:-

I got confused while placing order for Endurance. As we have these three values for Storage Package :-

0.25_IOPS_PER_GB = 45074

0.25_IOPS_PER_GB = 45074

2_IOPS_PER_GB = 45084

2_IOPS_PER_GB = 45084

4_IOPS_PER_GB = 45094

4_IOPS_PER_GB = 45094

那里的ID是固定的,但是当我们在下订单时选择其中一个时,我们会得到存储大小的列表,这在3种情况下几乎都是相同的.现在,假设三个软件包(0.25、2和4)全部具有100 GB的存储空间,那么100 GB的ID会有所不同.如果这些不同,则表示存储包和存储大小之间存在关系.那么它们之间的关系是什么.我应该尝试使用哪种api根据存储程序包(即选定的IOPS ID)获取存储大小.预先感谢

There Ids are fixed but when we select one of these while placing order we get list of storage size which is almost same in all of 3 cases. Now suppose for 100 GB storage space for all of three packages (0.25, 2, and 4) Ids for 100 GB will be different or not..? If these are different it means there exist a relation between Storage Package and Storage Size. then what will be the relation between them. What api should I try to fetch Storage Sizes based on Storage Package i.e. selected IOPS Id. Thanks in advance

推荐答案

  • 执行此请求时:

    • When executing this request:

      https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Product_Package/240/getItems?objectMask=mask[attributes.value,itemCategory.categoryCode,keyName,description]&objectFilter={   "items": {     "itemCategory": {       "categoryCode": {         "operation": "storage_tier_level"       }     }   } }
      
      Method: GET
      

    • 我们可以看到Storage Packages具有attribute values可以帮助我们获得存储包和存储大小之间的关系.例如,response向我们显示:

      We can see that the Storage Packages have attribute valuescan help us to get a relation between Storage Package and Storage Size. For example the response shows us:

      0.25 IOPS per GB --> "value": "100"
      
      2 IOPS per GB--> "value": "200"
      
      4 IOPS per GB--> "value": "300"
      

      • ,并且在执行以下请求以获取通过Storage Size过滤Endurance的有效价格时:

        • And when executing the below request to get valid prices for Endurance filtering by "Storage Size":

          https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Product_Package/240/getItemPrices?objectMask=mask[id,item[keyName,description],pricingLocationGroup[locations[id, name, longName]],categories.categoryCode,attributes[itemPriceAttributeType,value]]&objectFilter={   "itemPrices": {     "categories": {       "categoryCode": {         "operation": "performance_storage_space"       }     },     "locationGroupId": {       "operation": "is null"     }   } }
          
          Method: GET
          

        • 该响应向我们显示与存储软件包相关的存储大小"CAPACITY_RESTRICTION_MIN""CAPACITY_RESTRICTION_MAX".

          The response shows us the "CAPACITY_RESTRICTION_MIN" and "CAPACITY_RESTRICTION_MAX"of Storage Size related to Storage Packages.

          例如:100 GB Storage Space(id = 45234)应该在使用"4 IOPS per GB"(值":"300")创建订单时成功工作.以下是响应部分:

          For example: "100 GB Storage Space" (id = 45234) should work successfully when creating an order with "4 IOPS per GB" ( "value": "300"). Below is a section of response:

          回复:

          {
          "id": 45234
          "attributes": [3]
          0:  {
          "value": "300"
          "itemPriceAttributeType": {
          "id": 21
          "keyname": "CAPACITY_RESTRICTION_MIN"
          }-
          }-
          1:  {
          "value": "300"
          "itemPriceAttributeType": {
          "id": 22
          "keyname": "CAPACITY_RESTRICTION_MAX"
          }-
          }-
          2:  {
          "value": "STORAGE_TIER_LEVEL"
          "itemPriceAttributeType": {
          "id": 24
          "keyname": "CAPACITY_RESTRICTION_TYPE"
          }-
          }-
          -
          "categories": [1]
          0:  {
          "categoryCode": "performance_storage_space"
          }-
          -
          "item": {
          "description": "100 GB Storage Space"
          "keyName": "100_GB_PERFORMANCE_STORAGE_SPACE"
          }-
          }
          

          这是使用先前值的verifyOrder示例:

          This is a verifyOrder example using the previous values:

          https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Product_Order/verifyOrder
          

          方法:开机自检

          Json有效载荷:

          {
            "parameters": [
              {
                "location": 37473,  #Washington 1
                "packageId": 240,
                "osFormatType": {
                  "id": 12,
                  "keyName": "LINUX"
                },
                "complexType": "SoftLayer_Container_Product_Order_Network_Storage_Enterprise",
                "prices": [
                  {
                    "id": 45064   # Endurance Storage
                  },
                  {
                    "id": 45104   # Block Storage
                  },
                  {
                    "id": 45094   # Storage Tier Level: 4 IOPS per GB
                  },
                  {
                    "id": 45234   # performance_storage_space: 100 GB Storage Space
                  },
                  {
                    "id": 46176   # Storage Snapshot Space: 10 GB Storage Space
                  }
                ],
                "quantity": 1
              }
            ]
          }
          

          更新1:

          要使用 SoftLayer_Product_Package :: getItemPrices 获取有效值,并且Storage PackageStorage Size之间的关系,请参阅:

          Update 1:

          To get valid values using SoftLayer_Product_Package::getItemPrices with a relation of between Storage Package and Storage Size, please see:

          https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Product_Package/240/getItemPrices?objectMask=mask[id,item[keyName,description],pricingLocationGroup[locations[id, name, longName]],categories.categoryCode,attributes[itemPriceAttributeType,value]]&objectFilter={   "itemPrices": {     "attributes": {       "value": {         "operation": 300       }     },     "categories": {       "categoryCode": {         "operation": "performance_storage_space"       }     },     "locationGroupId": {       "operation": "is null"     }   } }
          
          Method: GET
          

          位置:响应将显示存储包"项目价格(类别代码":"performance_storage_space"`),可在选择"4 IOPS"时使用每GB"(值":300').

          Where: The response will display "Storage Package" item prices (categoryCode":"performance_storage_space"`) that can be used when selecting "4 IOPS per GB" (‘"value":300’).

          这篇关于IOPS值ID和Endurance Storage中的Storage Size ID之间的关系是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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