Search code examples
ibm-cloud-infrastructure

How to cancel snapshot space only?


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?


Solution

  • Try the following Rest request:

    https://$user:[email protected]/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: