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.

auth_url: str = 'https://identity.api.rackspacecloud.com'
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

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'
auth_url: str = 'https://identity.api.rackspacecloud.com'
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

api_name: str = 'rackspace'
connectionCls

alias of RackspaceFirstGenConnection

list_locations()[source]

Lists available locations

Locations cannot be set or retrieved via the API, but currently there are two locations, DFW and ORD.

@inherits: OpenStack_1_0_NodeDriver.list_locations

name: str = 'Rackspace Cloud (First Gen)'
type: Provider | str = 'rackspace_first_gen'
website: str = 'http://www.rackspace.com'
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

name: str = 'Rackspace Cloud (Next Gen)'
type: Provider | str = 'rackspace'
website: str = 'http://www.rackspace.com'