Created
September 26, 2014 20:47
-
-
Save underscorephil/1edeac115a7460be4bf1 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
#!/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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?