# Class Rackspace

Rackspace extends the OpenStack class with support for Rackspace's API key and tenant requirements.

The only difference between Rackspace and OpenStack is that the Rackspace class generates credentials using the username and API key, as required by the Rackspace authentication service.

Example:

    <code>
    $client = new Rackspace(
         'https://identity.api.rackspacecloud.com/v2.0/',
         array(
             'username' => 'FRED',
             'apiKey'   => '0900af093093788912388fc09dde090ffee09'
         )
    );
    </code>

  Guzzle\Http\Client
  OpenCloud\Common\Http\Client
  OpenCloud\OpenStack
  OpenCloud\Rackspace

Namespace: OpenCloud
Located at OpenCloud/Rackspace.php

Methods summary
`public string` | # `getCredentials( )` Generates Rackspace API key credentials Formats the credentials array (as a string) for authentication Generates Rackspace API key credentials Formats the credentials array (as a string) for authentication #### Returns `string` #### Throws ``OpenCloud\Common\Exceptions\CredentialError`` #### Overrides `OpenCloud\OpenStack::getCredentials()`
`public `OpenCloud\Database\Service`` | # `databaseService( string $name = null, string $region = null, string $urltype = null )` Creates a new Database service. Note: this is a Rackspace-only feature. Creates a new Database service. Note: this is a Rackspace-only feature. #### Parameters $name `string` $name The name of the service as it appears in the Catalog $region `string` $region The region (DFW, IAD, ORD, LON, SYD) $urltype `string` $urltype The URL type ("publicURL" or "internalURL") #### Returns ``OpenCloud\Database\Service``
`public `OpenCloud\LoadBalancer\Service`` | # `loadBalancerService( string $name = null, string $region = null, string $urltype = null )` Creates a new Load Balancer service. Note: this is a Rackspace-only feature. Creates a new Load Balancer service. Note: this is a Rackspace-only feature. #### Parameters $name `string` $name The name of the service as it appears in the Catalog $region `string` $region The region (DFW, IAD, ORD, LON, SYD) $urltype `string` $urltype The URL type ("publicURL" or "internalURL") #### Returns ``OpenCloud\LoadBalancer\Service``
`public `OpenCloud\DNS\Service`` | # `dnsService( string $name = null, string $region = null, string $urltype = null )` Creates a new DNS service. Note: this is a Rackspace-only feature. Creates a new DNS service. Note: this is a Rackspace-only feature. #### Parameters $name `string` $name The name of the service as it appears in the Catalog $region `string` $region The region (DFW, IAD, ORD, LON, SYD) $urltype `string` $urltype The URL type ("publicURL" or "internalURL") #### Returns ``OpenCloud\DNS\Service``
`public `OpenCloud\CloudMonitoring\Service`` | # `cloudMonitoringService( string $name = null, string $region = null, string $urltype = null )` Creates a new CloudMonitoring service. Note: this is a Rackspace-only feature. Creates a new CloudMonitoring service. Note: this is a Rackspace-only feature. #### Parameters $name `string` $name The name of the service as it appears in the Catalog $region `string` $region The region (DFW, IAD, ORD, LON, SYD) $urltype `string` $urltype The URL type ("publicURL" or "internalURL") #### Returns ``OpenCloud\CloudMonitoring\Service``
`public `OpenCloud\Autoscale\Service`` | # `autoscaleService( string $name = null, string $region = null, string $urltype = null )` Creates a new CloudQueues service. Note: this is a Rackspace-only feature. Creates a new CloudQueues service. Note: this is a Rackspace-only feature. #### Parameters $name `string` $name The name of the service as it appears in the Catalog $region `string` $region The region (DFW, IAD, ORD, LON, SYD) $urltype `string` $urltype The URL type ("publicURL" or "internalURL") #### Returns ``OpenCloud\Autoscale\Service``
`public `OpenCloud\Queues\Service`` | # `queuesService( string $name = null, string $region = null, string $urltype = null )` Creates a new CloudQueues service. Note: this is a Rackspace-only feature. Creates a new CloudQueues service. Note: this is a Rackspace-only feature. #### Parameters $name `string` $name The name of the service as it appears in the Catalog $region `string` $region The region (DFW, IAD, ORD, LON, SYD) $urltype `string` $urltype The URL type ("publicURL" or "internalURL") #### Returns ``OpenCloud\Queues\Service``

Methods inherited from OpenCloud\OpenStack
`__construct(), authenticate(), computeService(), exportCredentials(), getAuthUrl(), getCatalog(), getLogger(), getSecret(), getTenant(), getTenantObject(), getToken(), getTokenObject(), getUser(), identityService(), imageService(), importCredentials(), objectStoreService(), orchestrationService(), setAuthUrl(), setCatalog(), setLogger(), setSecret(), setTenant(), setTenantObject(), setToken(), setTokenObject(), setUser(), volumeService()`

Methods inherited from OpenCloud\Common\Http\Client
`getDefaultUserAgent(), getUserAgent()`

Constants summary
`string` | `US_IDENTITY_ENDPOINT` | `'https://identity.api.rackspacecloud.com/v2.0/'` | #
`string` | `UK_IDENTITY_ENDPOINT` | `'https://lon.identity.api.rackspacecloud.com/v2.0/'` | #

Constants inherited from OpenCloud\Common\Http\Client
`MINIMUM_PHP_VERSION, VERSION`