2016-09-23 31 views
0

我們正在建立一個實現,我們可以刪除所有塊sotrage包括性能&與選定的計費ID耐力,我已經使用存儲的取消以下SOFTLAYER REST API爲我們實現 「 https://api.softlayer.com//SoftLayer_Billing_Item/billingID/cancelItem「 Softlayer團隊告訴我,如果我希望立即刪除我的服務,我將需要根據我的意圖更新相應的請求。那麼,我應該在提到的API中給出什麼額外的參數來立即取消請求。的SoftLayer API塊存儲刪除請求立即

問候, Debartha

回答

1

請嘗試以下要求:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Billing_Item/[billingItemID]/cancelItem 

Method: POST 

Json Payload: 

{ 
    "parameters": [ 
    true, 
    false, 
    "No longer needed", 
    "Cancel immediately" 
    ] 
} 

第一個屬性爲true將立即取消該項目。請參閱SLDN參考SoftLayer_Billing_Item::cancelItem

要獲得billingItemID,請執行以下命令:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Network_Storage/[StorageID]/getBillingItem 
Method: GET