Softlayer API可以立即或在周年纪念日取消各种产品 [英] Softlayer API to cancel various product immediately or on anniversary date
问题描述
我有各种用例,想知道SoftLayer是否有可能
I have various use cases, want to know if it is possible for SoftLayer to
- 创建取消请求以在下一个周年纪念日取消设备吗?
- 取消与in1相同的下一个结算日取消请求
- 创建新的取消请求以立即取消设备吗?
根据我对各种SoftLayer API的研究以取消设备:
From my research on various SoftLayer APIs to cancel device:
-
虚拟服务器
SoftLayer_Virtual_Guest.deleteObject(),此方法将立即取消有效的实例 还有另一种方法可以在下一个周年纪念日同时取消每小时和每月的虚拟服务器吗?
Virtual Server
SoftLayer_Virtual_Guest.deleteObject(), this method will cancel a instance effective immedately Is there another method that can cancell the both hourly and monthly virtual servers on the next anniversary date?
裸机服务器
- SoftLayer_Ticket.createCancelServerTicket()立即取消,带有四个输入参数, 每月的裸机服务器将立即取消吗?
- SoftLayer_Ticket.createCancelServerTicket()在周年纪念日取消,带有五个输入参数
- SoftLayer_Ticket.createCancelServerTicket() cancel immediately , with four input parameters, Will monthly bare metal servers to be cancelled immediately?
- SoftLayer_Ticket.createCancelServerTicket() cancel on the anniversary day , with five input parameters,
网络,安全性,监视和存储:
Network, security, monitorying and storage:
- SoftLayer_Billing_Item,cancelService()立即取消 是否可以立即取消以上所有类型的设备
- cancelServiceOnAnniversaryDate() 如果使用此API调用,上述所有类型的产品都会在周年纪念日被取消吗?
- SoftLayer_Billing_Item, cancelService() to cancel immediately Can All the above types of devices be cancelled immediately
- cancelServiceOnAnniversaryDate() Will all the above types of products be cancelled on anniversaryDate if use this this API call?
推荐答案
softlayer中的所有设备和服务都已关联了一个计费项目,基本上,当您取消服务或设备时,您正在取消该计费项目.
All the devices and services in softlayer have associated a billing item, basically when you cancel a service or device you are cancelling the billing item.
因此,关于您的问题:
1.-创建取消请求以在下一个周年纪念日取消设备? 响应-是的,您可以使用 cancelItem 方法来取消VSI或Bare Metal服务器,该方法具有一个名为"cancelImmediately"的参数,当您将该值设置为false时,该设备将在周年纪念日被取消.对于服务,您可以使用 cancelServiceOnAnniversaryDate 方法.
1.-Create a cancellation request to cancel the device on the next anniversary day ? Resp.- Yes, it is possible you can use the methods cancelItem to cancel VSIs or Bare Metal servers, the method has a parameter called "cancelImmediately" when you set the value to false the device will be cancelled in the anniversary date. for services you can use cancelServiceOnAnniversaryDate method.
2.-像in1一样取消下一个结算日取消请求 分别在我看来,这与第一个问题相同.
2.- Cancel the next billing day cancellation request as in1 Resp. It seems to me the same question as the fisrts one.
3.-创建新的取消请求以立即取消设备吗? 回答:是的,可以.您需要使用 cancelItem 方法或
3.- Create a new cancellation request to cancel the device immediately? Resp: yes, you can. You need to use the cancelItem method or the cancelService method
关于您的研究: 1.-是的,deleteObject()方法将立即取消VSI,如果您希望在周年纪念日取消VSI,请使用"cancelImmediately"设置为false的cancelItem.
Regarding to your research: 1.- yes the deleteObject() method will cancell the VSI inmediatly, if you wish to cancel the VSI in the aniversarydate use the cancelItem with the "cancelImmediately" set to false.
2.-这种方法我没用过很多,但是,如果我没有记错,它不会自动取消设备,必须为Softlayer的员工检查您的票证,然后他才能取消服务器或VSI.
2.- This method I did not used a lot, but, if I am not wrong, it does not cancel the device automatically, your ticket must be reviewed for a Softlayer's employee and he cancels the server or VSI.
3.-是的,必须使用cancelService()方法立即取消所有类型. -是的,必须在annualDateDate中使用cancelServiceOnAnniversaryDate()方法取消所有类型
3.- yes all the types must be cancelled inmediatly with the cancelService() method. - Yes all the types must be cancelled in the anniversaryDate with the cancelServiceOnAnniversaryDate() method
有关计费项目的更多信息,请参见: http://sldn.softlayer.com/node/274103
For more information about billing items see this: http://sldn.softlayer.com/node/274103
这篇关于Softlayer API可以立即或在周年纪念日取消各种产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!