Created
October 21, 2013 17:22
-
-
Save underscorephil/7087536 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you please provide a python counterpart for this gist? Specifically for iSCSI.