文件错了: 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"
}
}
答案 0 :(得分: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
此致