l.d.e.EC2NodeDriver(NodeDriver) : class documentation

Part of libcloud.drivers.ec2 View Source View In Hierarchy

Known subclasses: libcloud.drivers.ec2.EC2APSENodeDriver, libcloud.drivers.ec2.EC2EUNodeDriver, libcloud.drivers.ec2.EC2USWestNodeDriver, libcloud.drivers.ec2.EucNodeDriver

Amazon EC2 node driver
Method list_nodes List all nodes @return: list of Node objects
Method list_sizes List sizes on a provider @return: list of NodeSize objects
Method list_images List images on a provider @return: list of NodeImage objects
Method ex_create_keypair Creates a new keypair
Method ex_create_security_group Creates a new Security Group
Method ex_authorize_security_group_permissive Edit a Security Group to allow all traffic.
Method create_node Create a new EC2 node
Method reboot_node Reboot the node by passing in the node object
Method destroy_node Destroy node by passing in the node object
Method list_locations List data centers for a provider @return: list of NodeLocation objects
Method _findtext Undocumented
Method _fixxpath Undocumented
Method _findattr Undocumented
Method _findall Undocumented
Method _pathlist Converts a key and an array of values into AWS query param format.
Method _get_boolean Undocumented
Method _get_terminate_boolean Undocumented
Method _to_nodes Undocumented
Method _to_node Undocumented
Method _to_images Undocumented
Method _to_image Undocumented

Inherited from NodeDriver:

Method __init__
Method deploy_node Create a new node, and start deployment.
def _findtext(self, element, xpath): (source)
Undocumented
def _fixxpath(self, xpath): (source)
Undocumented
def _findattr(self, element, xpath): (source)
Undocumented
def _findall(self, element, xpath): (source)
Undocumented
def _pathlist(self, key, arr): (source)
Converts a key and an array of values into AWS query param format.
def _get_boolean(self, element): (source)
Undocumented
def _get_terminate_boolean(self, element): (source)
Undocumented
def _to_nodes(self, object, xpath, groups=None): (source)
Undocumented
def _to_node(self, element, groups=None): (source)
Undocumented
def _to_images(self, object): (source)
Undocumented
def _to_image(self, element): (source)
Undocumented
def list_nodes(self): (source)
List all nodes
Returnslist of Node objects
def list_sizes(self, location=None): (source)
List sizes on a provider
Returnslist of NodeSize objects
def list_images(self, location=None): (source)
List images on a provider
Returnslist of NodeImage objects
def ex_create_keypair(self, name): (source)
Creates a new keypair
ParametersnameThe name of the keypair to Create. This must be unique, otherwise an InvalidKeyPair.Duplicate exception is raised. (type: str)
NoteThis is a non-standard extension API, and only works for EC2.
def ex_create_security_group(self, name, description): (source)
Creates a new Security Group
ParametersnameThe name of the security group to Create. This must be unique. (type: str)
descriptionHuman readable description of a Security Group. (type: str)
NoteThis is a non-standard extension API, and only works for EC2.
def ex_authorize_security_group_permissive(self, name): (source)
Edit a Security Group to allow all traffic.
ParametersnameThe name of the security group to edit (type: str)
NoteThis is a non-standard extension API, and only works for EC2.
def create_node(self, **kwargs): (source)
Create a new EC2 node

See NodeDriver.create_node for more keyword args. Reference: http://bit.ly/8ZyPSy [docs.amazonwebservices.com]

Parametersex_mincountMinimum number of instances to launch (type: int)
ex_maxcountMaximum number of instances to launch (type: int)
ex_securitygroupName of security group (type: str)
ex_keynameThe name of the key pair (type: str)
ex_userdataUser data (type: str)
def reboot_node(self, node): (source)
Reboot the node by passing in the node object
def destroy_node(self, node): (source)
Destroy node by passing in the node object
def list_locations(self): (source)
List data centers for a provider
Returnslist of NodeLocation objects
API Documentation for libcloud, generated by pydoctor at 2012-07-15 18:44:18.