2016-09-30 52 views
0

從今天(或可能在幾天前​​)開始,SoftLayer_Billing_Item::cancelService API已停止爲文件存儲類型NAS工作。它仍然適用於塊類型存儲。爲什麼我不能使用cancelService API刪除文件存儲NAS?

這裏是輸出我得到:

[[email protected] ~]$ curl -k -u chrisr1:xxxxxxxx https://api.softlayer.com/rest/v3/SoftLayer_Billing_Item/129162879/cancelService.json 
{"error":"This cancellation could not be processed please contact support.This cancellation could not be processed please contact support. You cannot cancel the selected billing items immediately. Please choose your next billing anniversary date for cancellation date.","code":"SoftLayer_Exception_Public"} 

這是以前的工作,但我嘗試使用SoftLayer_Billing_Item::cancelServiceOnAnniversaryDate API,看它是否會工作,但事實並非如此。

[[email protected] ~]$ curl -k -u chrisr1:xxxxxxxxxxxx https://api.softlayer.com/rest/v3/SoftLayer_Billing_Item/129162879/cancelServiceOnAnniversaryDate.json 

{"error":"This type of service cannot be cancelled through this method. Please use cancelService()","code":"SoftLayer_Exception"} 

回答

0

你能嘗試用這種方法請:

如:

curl -X -k POST -d '{"parameters":[true, true, "No longer needed", "Cancel"]}' -u $username:$apiKey https://api.softlayer.com/rest/v3/SoftLayer_Billing_Item/$billingItemId/cancelItem.json 

替換:$用戶名,$ apiKey和$ billingItemId用自己的信息。

+0

謝謝Ruber。我今天早上去嘗試你的解決方案,但是,我想確保原始問題仍在發生,現在今天早上,cancelService API再次運行。我欣賞這個建議。如果問題再次出現,我會嘗試。 –

+0

這很棒,隨時都可以 –

相關問題