Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created June 20, 2014 15:42
Show Gist options
  • Save underscorephil/81798c2fa586d4058f77 to your computer and use it in GitHub Desktop.
Save underscorephil/81798c2fa586d4058f77 to your computer and use it in GitHub Desktop.
import SoftLayer.API
from pprint import pprint as pp
apiUsername = ''
apiKey = ''
client = SoftLayer.Client(
username=apiUsername,
api_key=apiKey,
)
iscsi = client['SoftLayer_Network_Storage_Iscsi'].getObject(mask='mask.billingItem.id', id=1234)
result = client['Billing_Item'].cancelService(id=iscsi['billingItem']['id'])
pp(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment