Overview

Namespaces

  • None
  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Exceptions
      • Log
      • Request
        • Response
    • Compute
    • Database
    • DNS
    • LoadBalancer
      • Resources
    • ObjectStore
      • Resource
    • Orchestration
    • Volume
  • PHP

Classes

  • Database
  • Instance
  • Service
  • User
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class Service

The Rackspace Database As A Service (aka "Red Dwarf")

OpenCloud\Common\Base
Extended by OpenCloud\Common\Service
Extended by OpenCloud\Common\Nova
Extended by OpenCloud\Database\Service
Namespace: OpenCloud\Database
Located at OpenCloud/Database/Service.php
Methods summary
public
# __construct( OpenCloud\OpenStack $conn, string $name, string $region, string $urltype )

Creates a new DbService service connection

Creates a new DbService service connection

This is not normally called directly, but via the factory method on the OpenStack or Rackspace connection object.

Parameters

$conn
OpenCloud\OpenStack
$conn the connection on which to create the service
$name
string
$name the name of the service (e.g., "cloudDatabases")
$region
string
$region the region of the service (e.g., "DFW" or "LON")
$urltype
string
$urltype the type of URL (normally "publicURL")

Overrides

OpenCloud\Common\Nova::__construct()
public string
# url( string $resource = 'instances', array $args = array() )

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

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

Parameters

$resource
string
$resource the resource required
$args
array
$args extra arguments to pass to the URL as query strings

Returns

string

Throws

UrlError

Overrides

OpenCloud\Common\Service::url()
public OpenCloud\Compute\FlavorList
# flavorList( mixed $details = false, array $filter = array() )

Returns a list of flavors

Returns a list of flavors

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

Returns

OpenCloud\Compute\FlavorList

Api

public DbService\Instance
# instance( string $id = null )

Creates a Instance object

Creates a Instance object

Parameters

$id
string
$id the ID of the instance to retrieve

Returns

DbService\Instance

Api

public Collection
# instanceList( array $params = array() )

Creates a Collection of Instance objects

Creates a Collection of Instance objects

Parameters

$params
array
$params array of parameters to pass to the request as query strings

Returns

Collection

Api

Methods inherited from OpenCloud\Common\Nova
Flavor(), FlavorList(), Request(), load_namespaces()
Methods inherited from OpenCloud\Common\Service
collection(), extensions(), getConnection(), getCurrentNamespace(), getResources(), limits(), name(), namespaces(), region(), request(), resolveResourceClass(), resource(), resourceList(), setConnection()
Methods inherited from OpenCloud\Common\Base
__set(), checkJsonError(), getHttpRequestObject(), getLogger(), makeQueryString(), populate(), setLogger(), setProperty()
Properties inherited from OpenCloud\Common\Service
$_namespaces, $conn
PHP OpenCloud API API documentation generated by ApiGen 2.8.0