要取消 Endurance Block Storage,请执行:
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Billing_Item/[billing_item_id]/cancelService
方法:获取
参考:http ://sldn.softlayer.com/reference/services/SoftLayer_Billing_Item/cancelService
附加要求:
如何获取billing_item_id?
执行:
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Network_Storage/[network_storage_id]/getObject.json?objectMask=mask[id,username,billingItem.id]
方法:获取
参考:http ://sldn.softlayer.com/reference/services/SoftLayer_Network_Storage/getObject
如何获取network_storage_id?
执行:
如果我们知道分配给 Endurance 的名称,我们可以使用过滤器来获取此特定项目:例如用户名:SL01SEL123456-1
https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getNetworkStorage?objectFilter={"networkStorage":{ "username":{"operation":"SL01SEL123456-1"}}}
方法:获取
参考:http ://sldn.softlayer.com/reference/services/SoftLayer_Account/getNetworkStorage