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
''' | |
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 |
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
''' | |
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 |