Skip to content

Instantly share code, notes, and snippets.

@sudorandom
Created June 20, 2014 15:00
Show Gist options
  • Save sudorandom/78f5aa7efbb57bbeda54 to your computer and use it in GitHub Desktop.
Save sudorandom/78f5aa7efbb57bbeda54 to your computer and use it in GitHub Desktop.
Update Hardware Server Tags
import SoftLayer
from pprint import pprint
client = SoftLayer.Client(username='USERNAME', api_key='API_KEY')
client['Hardware_Server'].setTags('these,are,new,tags', id=12345)
pprint(client['Hardware_Server'].getObject(id=12345, mask='id, hostname, tagReferences'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment