-->

How to cancel snapshot space only?

2019-09-09 12:47发布

问题:

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