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:
$username = 'FRED';
$apiKey = '0900af093093788912388fc09dde090ffee09';
$conn = new Rackspace(
'https://identity.api.rackspacecloud.com/v2.0/',
array(
'username' => $username,
'apiKey' => $apiKey
));
-
OpenCloud\Common\Base
-
OpenCloud\OpenStack
-
OpenCloud\Rackspace
Methods summary
public
string
|
#
Credentials( )
Generates Rackspace API key credentials
Generates Rackspace API key credentials
Returns
string
|
public
|
#
DbService( string $name = null, string $region = null, string $urltype = null )
Creates a new DbService (Database as a Service) object
Creates a new DbService (Database as a Service) object
This is a factory method that is Rackspace-only (NOT part of OpenStack).
Parameters
- $name
string $name the name of the service (e.g., 'Cloud Databases')
- $region
string $region the region (e.g., 'DFW')
- $urltype
string $urltype the type of URL (e.g., 'publicURL');
|
public
|
#
LoadBalancerService( string $name = null, string $region = null, string $urltype = null )
Creates a new LoadBalancerService object
Creates a new LoadBalancerService object
This is a factory method that is Rackspace-only (NOT part of OpenStack).
Parameters
- $name
string $name the name of the service (e.g., 'Cloud Load Balancers')
- $region
string $region the region (e.g., 'DFW')
- $urltype
string $urltype the type of URL (e.g., 'publicURL');
|
public
|
#
DNS( mixed $name = null, mixed $region = null, mixed $urltype = null )
creates a new DNS service object
creates a new DNS service object
This is a factory method that is currently Rackspace-only (not available via
the OpenStack class)
|
public
|
#
CloudMonitoring( mixed $name = null, mixed $region = null, mixed $urltype = null )
creates a new CloudMonitoring service object
creates a new CloudMonitoring service object
This is a factory method that is currently Rackspace-only (not available via
the OpenStack class)
|
public
|
#
Autoscale( mixed $name = null, mixed $region = null, mixed $urltype = null )
creates a new Autoscale service object
creates a new Autoscale service object
This is a factory method that is currently Rackspace-only (not available via
the OpenStack class)
|
Methods inherited from OpenCloud\OpenStack
__construct(),
_read_cb(),
_write_cb(),
appendUserAgent(),
authenticate(),
checkExpiration(),
compute(),
credentials(),
expiration(),
exportCredentials(),
getCatalog(),
getConnectTimeout(),
getCurlOptions(),
getDefault(),
getExpiration(),
getExportItems(),
getFileDescriptor(),
getHttpTimeout(),
getOverlimitTimeout(),
getSecret(),
getTenant(),
getToken(),
getUrl(),
getUserAgent(),
hasExpired(),
importCredentials(),
objectStore(),
orchestration(),
request(),
secret(),
service(),
serviceCatalog(),
serviceCatalogItem(),
serviceList(),
setCatalog(),
setConnectTimeout(),
setCurlOptions(),
setDefault(),
setDefaults(),
setDownloadProgressCallback(),
setExpiration(),
setFileDescriptor(),
setHttpTimeout(),
setOverlimitTimeout(),
setSecret(),
setTenant(),
setTimeouts(),
setToken(),
setUploadProgressCallback(),
setUrl(),
setUserAgent(),
tenant(),
token(),
url(),
volumeService()
|
Constants summary
string |
APIKEYTEMPLATE
|
<<<ENDCRED
{ "auth": { "RAX-KSKEY:apiKeyCredentials": { "username": "%s",
"apiKey": "%s"
}
}
}
ENDCRED |
|
Properties inherited from OpenCloud\OpenStack
$catalog,
$connectTimeout,
$defaults,
$expiration,
$httpTimeout,
$overlimitTimeout,
$secret,
$tenant,
$token,
$url,
$useragent
|