OpenCloud/Database/Service.php

Properties

Description

Rackspace's Cloud Databases (database as a service)

Classes

Service

Properties

 
 
No 
No 

Description

The Rackspace Database As A Service (aka "Red Dwarf")
Nova is used as a basis for several products, including Compute services as well as Rackspace's Cloud Databases. This class is, in essence, a vehicle for sharing common code between those other classes.

Methods

FlavorList, Instance, InstanceList, Url, __construct,

FlavorList(   $details = false,   $filter = array(), ) : \OpenCloud\Compute\FlavorList

Description

Returns a list of flavors
just call the parent FlavorList() method, but pass FALSE because the /flavors/detail resource is not supported

Arguments

Name Type Description Default
$details n/a false
$filter n/a array()

Return value

Type Description
\OpenCloud\Compute\FlavorList

Tags

Name Description
api

Instance( string   $id = null, ) : \OpenCloud\Database\DbService\Instance

Description

Creates a Instance object

Arguments

Name Type Description Default
$id string

the ID of the instance to retrieve

null

Return value

Type Description
\OpenCloud\Database\DbService\Instance

Tags

Name Description
api

InstanceList( array   $params = array(), ) : \OpenCloud\Database\Collection

Description

Creates a Collection of Instance objects

Arguments

Name Type Description Default
$params array

array of parameters to pass to the request as query strings

array()

Return value

Type Description
\OpenCloud\Database\Collection

Tags

Name Description
api

Url( string   $resource = 'instances', array   $args = array(), ) : n/a

Description

Returns the URL of this database service, or optionally that of an instance

Arguments

Name Type Description Default
$resource string

the resource required

'instances'
$args array

extra arguments to pass to the URL as query strings

array()

Return value

Type Description
n/a n/a

__construct( \OpenCloud\OpenStack   $conn, string   $name, string   $region, string   $urltype, ) : n/a

Description

Creates a new DbService service connection
This is not normally called directly, but via the factory method on the OpenStack or Rackspace connection object.

Arguments

Name Type Description Default
$conn \OpenCloud\OpenStack

the connection on which to create the service

$name string

the name of the service (e.g., "cloudDatabases")

$region string

the region of the service (e.g., "DFW" or "LON")

$urltype string

the type of URL (normally "publicURL")

Return value

Type Description
n/a n/a
Documentation was generated by phpDocumentor 2.0.0b6 .

Namespaces

Packages