Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created October 29, 2013 18:05
Show Gist options
  • Save underscorephil/7219657 to your computer and use it in GitHub Desktop.
Save underscorephil/7219657 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,
)
guest_id = 2583275
block_devices = client['Virtual_Guest'].getBlockDevices(id=guest_id)
result = client['Virtual_Guest'].createArchiveTransaction("Test Group", [{'id': block_devices[0]['id']}], "Test Note", id=guest_id)
pp(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment