如何取消块存储的SoftLayer订单? [英] How to cancel SoftLayer order for Block Storage?

查看:55
本文介绍了如何取消块存储的SoftLayer订单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我终于能够使用SoftLayer服务API来订购Endurance块存储.现在,问题是如何使用API​​取消它? 我需要使用哪些数据来取消订单? 以及我要使用什么API取消?

I was finally able to use SoftLayer services API to order an Endurance block storage. Now, the question is how can I cancel it using the API? Which data that I need from the order that I need to use to cancel? And what API do I use to cancel?

我有SoftLayer_Billing_Order和SoftLayer_Billing_Item信息. 对于虚拟服务器,从上述信息中,使用guestId或hardwareId标识服务器并使用它进行删除.我没有得到用于存储的此类数据.他们是空的.

I have the SoftLayer_Billing_Order and SoftLayer_Billing_Item information. For a Virtual server, from above info, a guestId or hardwareId is used to identify the server and use it to delete. I don't get such data for the storage. They are empty.

那么我该如何引用我提供的耐久块存储? 以及如何使用SoftLayer Services API取消或删除它?

So how do I reference an endurance block storage that I provisioned? And how do I cancel or delete it using the SoftLayer Services APIs?

推荐答案

要取消耐力块存储,请执行:

To cancel an Endurance Block Storage, execute:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Billing_Item/[billing_item_id]/cancelService

方法: GET

参考: 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]

方法: GET

参考: http://sldn.softlayer.com/reference/services/SoftLayer_Network_Storage/getObject

如何获取 network_storage_id ?

执行:

如果我们知道分配给Endurance的名称,则可以使用过滤器来获取此特定项目: 例如用户名:SL01SEL123456-1

If we know the name assigned to the Endurance, we can use filters to get this specific item: e.g. username: SL01SEL123456-1

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getNetworkStorage?objectFilter={"networkStorage":{ "username":{"operation":"SL01SEL123456-1"}}}

方法: GET

参考: http://sldn.softlayer.com/reference/services/SoftLayer_Account/getNetworkStorage

这篇关于如何取消块存储的SoftLayer订单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆