Network_Storage.storageTierLevel不应该是字符串类型
Network_Storage.storageTierLevel should not be a string type
文件有误:
https://sldn.softlayer.com/reference/datatypes/SoftLayer_Network_Storage
参考下面的REST调用和响应
{
"id": 13923041,
"storageTierLevel":
{
"allowCancellationFlag": 1,
"associatedBillingItemId": "123709989",
"cancellationDate": null,
"categoryCode": "storage_tier_level",
"createDate": "2016-08-31T02:09:15-07:00",
"cycleStartDate": "2016-11-01T02:18:19-07:00",
"description": "0.25 IOPS per GB",
"id": 123709993,
"laborFee": "0",
"laborFeeTaxRate": "0",
"lastBillDate": "2016-11-01T02:18:19-07:00",
"modifyDate": "2016-11-01T02:18:19-07:00",
"nextBillDate": "2016-12-01T00:00:00-06:00",
"oneTimeFee": "0",
"oneTimeFeeTaxRate": "0",
"orderItemId": 149747285,
"parentId": 123709989,
"recurringFee": "0",
"recurringFeeTaxRate": "0",
"recurringMonths": 1,
"serviceProviderId": 1,
"setupFee": "0",
"setupFeeTaxRate": "0"
}
}
问题不在于文档,而是与 objectMask 相关。目前它正在返回一个错误的 billingItem 项目。
如果您执行此请求:
GET https://$USERNAME:$APIKEY@api.softlayer.com/rest/v3.1/SoftLayer_Network_Storage/13923041/getObject?objectMask=mask[id,storageTierLevel,billingItem[children]]
您会注意到 billingItem 的其中一个子项与 "storageTierLevel" 属性 上显示的值相同。
我不知道他们什么时候会修好。
同时您可以使用此请求:
GET https://$USERNAME:$APIKEYapi.softlayer.com/rest/v3.1/SoftLayer_Network_Storage/13923041/getObject?objectMask=storageTierLevel;id
此致
文件有误: https://sldn.softlayer.com/reference/datatypes/SoftLayer_Network_Storage
参考下面的REST调用和响应
{
"id": 13923041,
"storageTierLevel":
{
"allowCancellationFlag": 1,
"associatedBillingItemId": "123709989",
"cancellationDate": null,
"categoryCode": "storage_tier_level",
"createDate": "2016-08-31T02:09:15-07:00",
"cycleStartDate": "2016-11-01T02:18:19-07:00",
"description": "0.25 IOPS per GB",
"id": 123709993,
"laborFee": "0",
"laborFeeTaxRate": "0",
"lastBillDate": "2016-11-01T02:18:19-07:00",
"modifyDate": "2016-11-01T02:18:19-07:00",
"nextBillDate": "2016-12-01T00:00:00-06:00",
"oneTimeFee": "0",
"oneTimeFeeTaxRate": "0",
"orderItemId": 149747285,
"parentId": 123709989,
"recurringFee": "0",
"recurringFeeTaxRate": "0",
"recurringMonths": 1,
"serviceProviderId": 1,
"setupFee": "0",
"setupFeeTaxRate": "0"
}
}
问题不在于文档,而是与 objectMask 相关。目前它正在返回一个错误的 billingItem 项目。
如果您执行此请求:
GET https://$USERNAME:$APIKEY@api.softlayer.com/rest/v3.1/SoftLayer_Network_Storage/13923041/getObject?objectMask=mask[id,storageTierLevel,billingItem[children]]
您会注意到 billingItem 的其中一个子项与 "storageTierLevel" 属性 上显示的值相同。
我不知道他们什么时候会修好。
同时您可以使用此请求:
GET https://$USERNAME:$APIKEYapi.softlayer.com/rest/v3.1/SoftLayer_Network_Storage/13923041/getObject?objectMask=storageTierLevel;id
此致