Overview
  • Namespace
  • Class

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CDN
      • Resource
    • CloudMonitoring
      • Collection
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Log
      • Resource
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Collection
      • Resource
    • Identity
      • Constants
      • Resource
    • Image
      • Enum
      • Resource
        • JsonPatch
        • Schema
    • LoadBalancer
      • Collection
      • Enum
      • Resource
    • Networking
      • Resource
    • ObjectStore
      • Constants
      • Enum
      • Exception
      • Resource
      • Upload
    • Orchestration
      • Resource
    • Queues
      • Collection
      • Exception
      • Resource
    • Volume
      • Resource

Classes

  • OpenStack
  • Rackspace
  • Version

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
Extended by OpenCloud\Common\Http\Client
Extended by OpenCloud\OpenStack
Extended by 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
The name of the service as it appears in the Catalog
$region
The region (DFW, IAD, ORD, LON, SYD)
$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
The name of the service as it appears in the Catalog
$region
The region (DFW, IAD, ORD, LON, SYD)
$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
The name of the service as it appears in the Catalog
$region
The region (DFW, IAD, ORD, LON, SYD)
$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
The name of the service as it appears in the Catalog
$region
The region (DFW, IAD, ORD, LON, SYD)
$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
The name of the service as it appears in the Catalog
$region
The region (DFW, IAD, ORD, LON, SYD)
$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
The name of the service as it appears in the Catalog
$region
The region (DFW, IAD, ORD, LON, SYD)
$urltype
The URL type ("publicURL" or "internalURL")

Returns

OpenCloud\Queues\Service
public OpenCloud\Cdn\Service
# cdnService( string $name = null, string $region = null, string $urltype = null )

Creates a new CDN (Rackspace CDN) service object

Creates a new CDN (Rackspace CDN) service object

Parameters

$name
The name of the service as it appears in the Catalog
$region
The region (DFW, IAD, ORD, LON, SYD)
$urltype
The URL type ("publicURL" or "internalURL")

Returns

OpenCloud\Cdn\Service

Codecoverageignore

Overrides

OpenCloud\OpenStack::cdnService

Methods inherited from OpenCloud\OpenStack

__construct(), authenticate(), computeService(), exportCredentials(), getAuthUrl(), getCatalog(), getExpiration(), getLogger(), getSecret(), getTenant(), getTenantObject(), getToken(), getTokenObject(), getUrl(), getUser(), hasExpired(), hasLogger(), identityService(), imageService(), importCredentials(), networkingService(), objectStoreService(), orchestrationService(), setAuthUrl(), setCatalog(), setExpiration(), 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/'
API documentation generated by ApiGen