libcloud.compute.drivers.rackspace module
Rackspace driver
- class libcloud.compute.drivers.rackspace.RackspaceConnection(*args, **kwargs)[source]
Bases:
OpenStack_1_1_Connection
Connection class for the Rackspace next-gen OpenStack base driver.
Initialize user_id and key; set secure to an
int
based on passed value.
- class libcloud.compute.drivers.rackspace.RackspaceFirstGenConnection(*args, **kwargs)[source]
Bases:
OpenStack_1_0_Connection
Connection class for the Rackspace first-gen driver.
Initialize user_id and key; set secure to an
int
based on passed value.- XML_NAMESPACE = 'http://docs.rackspacecloud.com/servers/api/v1.0'
- cache_busting = True
- get_endpoint()[source]
Selects the endpoint to use based on provider specific values, or overrides passed in by the user when setting up the driver.
- Returns:
url of the relevant endpoint for the driver
- get_service_name()[source]
Gets the service name used to look up the endpoint in the service catalog.
- Returns:
name of the service in the catalog
- responseCls
alias of
OpenStack_1_0_Response
- class libcloud.compute.drivers.rackspace.RackspaceFirstGenNodeDriver(key, secret=None, secure=True, host=None, port=None, api_version='1.1', **kwargs)[source]
Bases:
OpenStack_1_0_NodeDriver
@inherits:
NodeDriver.__init__
- Parameters:
region (
str
) – Region ID which should be used
- connectionCls
alias of
RackspaceFirstGenConnection
- class libcloud.compute.drivers.rackspace.RackspaceNodeDriver(key, secret=None, secure=True, host=None, port=None, api_version='1.1', **kwargs)[source]
Bases:
OpenStack_1_1_NodeDriver
@inherits:
NodeDriver.__init__
- Parameters:
region (
str
) – ID of the region which should be used.
- connectionCls
alias of
RackspaceConnection