How to cancel snapshot space only?

断了今生、忘了曾经 提交于 2019-12-11 18:08:11

问题


For the cancel operation, we are canceling a billing item of purchased product.

But for the cancellation of snapshot space, (not for whole storage) it returns error when we try it with same way.

How can I cancel billing item for snapshot space?


回答1:


Try the following Rest request:

https://$user:$apiKey@api.softlayer.com/rest/v3.1/SoftLayer_Billing_Item_Cancellation_Request/createObject.json

Method: Post

{  
   "parameters":[  
      {  
         "complexType":"SoftLayer_Billing_Item_Cancellation_Request",
         "accountId":123123,
         "notes":"notes test",
         "items":[  
            {  
               "complexType":"SoftLayer_Billing_Item_Cancellation_Request_Item",
               "billingItemId":101726027,
               "immediateCancellationFlag":true
            }
         ]
      }
   ]
}

References:

  • SoftLayer_Billing_Item_Cancellation_Request::createObject


来源:https://stackoverflow.com/questions/37312242/how-to-cancel-snapshot-space-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!