Skip to content

Instantly share code, notes, and snippets.

View rhodgin's full-sized avatar

Ryan Hodgin rhodgin

  • IBM
  • Boulder, CO
View GitHub Profile
@rhodgin
rhodgin / list_my_active_softlayer_vms.py
Last active August 29, 2015 14:19
Code to list SoftLayer virtual instances (VSIs) that were created by specific user ID
'''
Code example of how to list virtual instances from a SoftLayer account
You can call the script from the command and provide the user ID you
want to check. The script expects that you have the SoftLayer CLI
installed and have it configured with the credentials you'd like
to use with SoftLayer.
You can run the script with the user ID you'd like to check under
the account you have configured:
list_my_active_softlayer_vms userid
@rhodgin
rhodgin / gist:340054a1a373a859b989
Created July 10, 2015 15:48
python module to get basic information about virtual and hardware servers in a SoftLayer account
'''
Code example of how to get information on the servers in a
SoftLayer account. You can call the script from the command line
and provide the userid and api key that you'd like to use to check
the account with.
You can run the script with the user ID you'd like to check under
the account you have configured:
find_active_softlayer_servers sl_username sl_api_key