HPCloud-PHP
1.2.0
PHP bindings for HPCloud and OpenStack services.
|
Public Member Functions | |
__construct ($token, $projectId, $endpoint) | |
describe ($instanceId) | |
listInstances () | |
create ($name, $flavor= 'medium', $typeSpec=NULL) | |
Create a new database. | |
delete ($instanceId) | |
restart ($instanceId) | |
resetPassword ($instanceId) | |
Reset the primary password on this instance. |
Protected Attributes | |
$token | |
$projectId | |
$url | |
$client | |
Protected Attributes inherited from Operations | |
$token | |
$projectId |
Additional Inherited Members | |
Protected Member Functions inherited from Operations | |
headers ($merge=array()) | |
Generate the base headers needed by DBaaS requests. |
Definition at line 32 of file Instance.php.
__construct | ( | $token, | |
$projectId, | |||
$endpoint | |||
) |
Definition at line 39 of file Instance.php.
References $endpoint, DBaaS\$projectId, DBaaS\$token, DBaaS\instance(), DBaaS\projectId(), and DBaaS\url().
create | ( | $name, | |
$flavor = 'medium' , |
|||
$typeSpec = NULL |
|||
) |
Create a new database.
This creates a database tuned according to the $flavor settings. The return data will include login/password and connection information.
string | $name | The name of the database. |
string | $flavor | The string flavor name. Known values are:
|
array | $typeSpec | A typespec array. Currently, only 'mysql', '5.5' is supported. |
HPCloud::Services::DBaaS::InstanceDetails |
Definition at line 87 of file Instance.php.
References $name, DBaaS\$url, Operations\headers(), DBaaS\projectId(), and DBaaS\url().
delete | ( | $instanceId | ) |
Definition at line 124 of file Instance.php.
References DBaaS\$url, Operations\headers(), and DBaaS\url().
describe | ( | $instanceId | ) |
Definition at line 46 of file Instance.php.
References DBaaS\$url, Operations\headers(), and DBaaS\url().
listInstances | ( | ) |
Definition at line 54 of file Instance.php.
References DBaaS\$url, Operations\headers(), and DBaaS\url().
resetPassword | ( | $instanceId | ) |
Reset the primary password on this instance.
string |
Definition at line 144 of file Instance.php.
References DBaaS\$url, Operations\headers(), and DBaaS\url().
restart | ( | $instanceId | ) |
Definition at line 130 of file Instance.php.
References DBaaS\$url, Operations\headers(), and DBaaS\url().
|
protected |
Definition at line 37 of file Instance.php.
|
protected |
Definition at line 35 of file Instance.php.
|
protected |
Definition at line 34 of file Instance.php.
|
protected |
Definition at line 36 of file Instance.php.