请尝试以下操作以使用掩码获取 EVault 位置:
Option 1:
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getEvaultNetworkStorage?objectMask=mask[id, serviceResourceName,guestId,billingItem[id,location]]
Method: GET
Option 2:
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Network_Storage_Backup_Evault/[Evault_id]/getObject?objectMask=mask[billingItem[id,location]]
Method: GET
另外,要获取 EVault 订单的有效位置,我建议您使用以下请求:
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Product_Package/0/getItemPrices?objectMask=mask[id,locationGroupId,item[id,keyName,description],pricingLocationGroup[locations[id, name, longName]]]&objectFilter={ "itemPrices": { "item": { "keyName": { "operation": "*=EVAULT" } } } }
Method: GET
注意:locationGroupId = null 的价格 ID 被视为“标准价格”,API 将在内部为客户切换价格。但我们建议首先执行 verifyOrder 以查看想要的订单是否可以(费用可能会有所不同)。
要获取有关价格和地点的更多信息,请查看:
http://sldn.softlayer.com/blog/cmporter/Location-based-Pricing-and-You http://sldn.softlayer.com/blog/cmporter/Location-based-Pricing-and-You
参考:
http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getItemPrices http://sldn.softlayer.com/reference/services/SoftLayer_Product_Package/getItemPrices
我希望这些信息对您有所帮助。