Skip to content

Instantly share code, notes, and snippets.

@underscorephil
Created September 26, 2014 20:47
Show Gist options
  • Save underscorephil/1edeac115a7460be4bf1 to your computer and use it in GitHub Desktop.
Save underscorephil/1edeac115a7460be4bf1 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import SoftLayer.API
from pprint import pprint as pp
api_username = ''
api_key = ''
client = SoftLayer.Client(
username=api_username,
api_key=api_key,
)
server_id = 1234
config = {
'imageTemplateId': 1234
}
result = client['Hardware_Server'].reloadOperatingSystem(
'FORCE',
config,
id=server_id)
pp(result)
Copy link

ghost commented Dec 17, 2015

Hi there, i have been desperately searching for an hour to find a way to add postURI script in osreload using flex image..Would you please be able to help?

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