SoftLayer.CCI

CCI Manager/helpers

copyright:
  1. 2013, SoftLayer Technologies, Inc. All rights reserved.
license:

BSD, see LICENSE for more details.

class SoftLayer.managers.cci.CCIManager(client)[source]

Manage CCIs

cancel_instance(id)[source]

Cancel an instance immediately, deleting all its data.

Parameters:id (integer) – the instance ID to cancel
change_port_speed(id, public, speed)[source]
create_instance(**kwargs)[source]

see _generate_create_dict

edit(id, userdata=None, hostname=None, domain=None, notes=None)[source]

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:
  • id (integer) – the instance ID to edit
  • userdata (string) – user data on CCI to edit. If none exist it will be created
  • hostname (string) – valid hostname
  • domain (string) – valid domain namem
  • notes (string) – notes about this particular CCI
get_create_options()[source]
get_instance(id, **kwargs)[source]

Get details about a CCI instance

Parameters:id (integer) – the instance ID
list_instances(hourly=True, monthly=True, tags=None, cpus=None, memory=None, hostname=None, domain=None, local_disk=None, datacenter=None, nic_speed=None, public_ip=None, private_ip=None, **kwargs)[source]

Retrieve a list of all CCIs on the account.

Parameters:
  • hourly (boolean) – include hourly instances
  • monthly (boolean) – include monthly instances
  • tags (list) – filter based on tags
  • cpus (integer) – filter based on number of CPUS
  • memory (integer) – filter based on amount of memory
  • hostname (string) – filter based on hostname
  • domain (string) – filter based on domain
  • local_disk (string) – filter based on local_disk
  • datacenter (string) – filter based on datacenter
  • nic_speed (integer) – filter based on network speed (in MBPS)
  • public_ip (string) – filter based on public ip address
  • private_ip (string) – filter based on private ip address
  • **kwargs (dict) – response-level arguments (limit, offset, etc.)
reload_instance(id, post_uri=None)[source]

Perform an OS reload of an instance with its current configuration.

Parameters:
  • id (integer) – the instance ID to reload
  • post_url (string) – The URI of the post-install script to run after reload
resolve_ids(identifier)

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:
resolvers = []
verify_create_instance(**kwargs)[source]

see _generate_create_dict

wait_for_transaction(id, limit, delay=1)[source]

Previous topic

Managers

Next topic

SoftLayer.DNS

This Page