Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created October 21, 2013 17:22
Show Gist options
  • Save underscorephil/7087536 to your computer and use it in GitHub Desktop.
Save underscorephil/7087536 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'softlayer_api'
require 'net/https'
require 'pp'
virtual_guest_service = SoftLayer::Service.new("SoftLayer_Virtual_Guest",
:username => "",
:api_key => "")
guest_id = 2583275
guest_ref = virtual_guest_service.object_with_id(guest_id)
guest = guest_ref.object_mask("mask.id").getObject
edit_guest = {
'id' => guest_id,
'notes' => "Test Notes"
}
result = guest_ref.editObject(edit_guest)
pp(result)
@amol
Copy link

amol commented Nov 13, 2013

Can you please provide a python counterpart for this gist? Specifically for iSCSI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment