Created
August 27, 2013 21:00
-
-
Save underscorephil/6359097 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
import SoftLayer.API | |
from pprint import pprint as pp | |
apiUsername = '' | |
apiKey = '' | |
client = SoftLayer.Client( | |
username=apiUsername, | |
api_key=apiKey, | |
) | |
import SoftLayer.API | |
from pprint import pprint as pp | |
password = '' | |
vpn_password = password | |
template_user = { | |
'username': 'testeruser123', | |
'firstName': 'tester', | |
'lastName': 'McTesterson', | |
'email': '[email protected]', | |
'companyName': 'SoftLayer Test', | |
'address1': '1 test ave', | |
'city': 'testown', | |
'country': 'US', | |
'postalCode': '77002', | |
'userStatusId': 1001, | |
'timezoneId': 114, | |
} | |
new_user = client['User_Customer'].createObject(template_user, password, vpn_password) | |
pp(new_user) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to find the userStatusId and timezoneId code?