通过 API 检索 IBM Cloud Object Storage S3 定价

Retrieving IBM Cloud Object Storage S3 pricing via API

有什么方法可以通过一些 API 电话检索 "IBM Cloud Object Storage - S3" 定价数据?

我希望通过 API 检索的定价数字在 this 屏幕截图中突出显示。

您需要通过 REST ful 使用此请求:

https://$USERID:$APIKEY8@api.softlayer.com/rest/v3/SoftLayer_Product_Package/206/getObjectStorageDatacenters

然后您需要查找所有长描述属性包含 "Cleversafe"

的项目

例如

这是您将使用上述请求获得的此属性的值:

 {
                "currentPriceFlag": null,
                "hourlyRecurringFee": "0",
                "id": 177743,
                "itemId": 8179,
                "laborFee": "0",
                "locationGroupId": null,
                "onSaleFlag": null,
                "oneTimeFee": "0",
                "quantity": null,
                "recurringFee": "0",
                "setupFee": "0",
                "sort": 0,
                "usageRate": ".03",
                "item": {
                    "capacity": "0",
                    "description": "Standard Cross Region",
                    "id": 8179,
                    "itemTaxCategoryId": 166,
                    "keyName": "STANDARD_CROSS_REGION",
                    "longDescription": "Standard Cross Region - CLEVERSAFE",
                    "softwareDescriptionId": null,
                    "units": "GIGABYTE",
                    "upgradeItemId": null,
                    "itemCategory": {
                        "categoryCode": "object_storage_service",
                        "id": 812,
                        "name": "Object Storage Service",
                        "quantityLimit": 0
                    }
                }
            },

正如您在描述中看到的那样,它说 "Standard Cross Region" usageRate 说“.03”,单位说 "GYGABYTE" 。您只需要在响应中查找其他值

此致