Created
December 9, 2013 17:14
-
-
Save underscorephil/7876124 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
from SoftLayer import CCIManager, Client | |
api_username = '' | |
api_key = '' | |
object_mask = 'mask.provisionDate' | |
client = Client( | |
username=api_username, | |
api_key=api_key | |
) | |
manager = CCIManager(client) | |
cci = manager.get_instance(1234) | |
if ( 'provisionDate' in cci and cci['provisionDate'] != ''): | |
print 'CCI %s is online' % cci['hostname'] | |
else: | |
print 'CCI %s is provisioning' % cci['hostname'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment