CCI Manager/helpers
copyright: |
|
---|---|
license: | MIT, see LICENSE for more details. |
Manage CCIs
Reference to the SoftLayer_Account API object.
Cancel an instance immediately, deleting all its data.
Parameters: | id (integer) – the instance ID to cancel |
---|
Allows you to change the port speed of a CCI’s NICs.
Parameters: |
|
---|
A valid SoftLayer.API.Client object that will be used for all actions.
Orders a new instance. See _generate_create_dict() for a list of available options.
Edit hostname, domain name, notes, and/or the user data of a CCI
Parameters set to None will be ignored and not attempted to be updated.
Parameters: |
|
---|
Retrieves the available options for creating a CCI.
Returns: | A dictionary of creation options. |
---|
Get details about a CCI instance
Parameters: | id (integer) – the instance ID |
---|---|
Returns: | A dictionary containing a large amount of information about the specified instance. |
Reference to the SoftLayer_Virtual_Guest API object.
Retrieve a list of all CCIs on the account.
Parameters: |
|
---|---|
Returns: | Returns a list of dictionaries representing the matching CCIs |
# Print out a list of all hourly CCIs in the DAL05 data center.
# env variables
# SL_USERNAME = YOUR_USERNAME
# SL_API_KEY = YOUR_API_KEY
import SoftLayer
client = SoftLayer.Client()
mgr = SoftLayer.CCIManager(client)
for cci in mgr.list_instances(hourly=True, datacenter='dal05'):
print cci['fullyQualifiedDomainName'], cci['primaryIpAddress']
Perform an OS reload of an instance with its current configuration.
Parameters: |
|
---|
Takes a string and tries to resolve to a list of matching ids. What exactly ‘identifier’ can be depends on the resolvers
Parameters: | identifier (string) – identifying string |
---|---|
Returns list: |
A list of resolver functions. Used primarily by the CLI to provide a variety of methods for uniquely identifying an object such as hostname and IP address.
Verifies an instance creation command without actually placing an order. See _generate_create_dict() for a list of available options.
Waits on a CCI transaction for the specified amount of time.
Parameters: |
|
---|