package Zend_Service_Rackspace

 Methods

Constructor

__construct(\Zend_Service_Rackspace_Servers $service, array $data) : void

Parameters

$service

\Zend_Service_Rackspace_Servers

$data

array

Change the name of the server

changeName(string $name) : boolean

Parameters

$name

string

Returns

boolean

Change the admin password of the server

changePassword(string $password) : boolean

Parameters

$password

string

Returns

boolean

Ge the server's admin password

getAdminPass() : string

Returns

string

Get the server's flavor Id

getFlavorId() : string

Returns

string

Get the server's host Id

getHostId() : string

Returns

string

Get the server's id

getId() : string

Returns

string

Get the server's image Id

getImageId() : string

Returns

string

Get the name of the server

getName() : string

Returns

string

Get the private IPs

getPrivateIp() : array | boolean

Returns

arrayboolean

Get the progress's status

getProgress() : integer | boolean

Returns

integerboolean

Get the public IPs

getPublicIp() : array | boolean

Returns

arrayboolean

Get the server's status

getStatus() : string | boolean

Returns

stringboolean

Reboot the server

reboot($hard = false) : boolean

Parameters

$hard

Returns

boolean

To Array

toArray() : array

Returns

array

 Properties

 

Public and private IP addresses

$addresses : array

Default

array()
 

Admin password, generated on a new server

$adminPass : string

Default

 

Flavor id of the server

$flavorId : string

Default

 

Host id

$hostId : string

Default

 

Server's id

$id : string

Default

 

Image id of the server

$imageId : string

Default

   

Server's name

$name : string

Default

 

Progress of the status

$progress : integer

Default

 

The service that has created the server object

$service : \Zend_Service_Rackspace_Servers

Default

 

Server's status

$status : string

Default

 Constants

 

ERROR_PARAM_CONSTRUCT

ERROR_PARAM_CONSTRUCT = 'You must pass a Zend_Service_Rackspace_Servers object and an array' 
 

ERROR_PARAM_NO_ID

ERROR_PARAM_NO_ID = 'You must pass the server\'s id in the array (id)' 
 

ERROR_PARAM_NO_NAME

ERROR_PARAM_NO_NAME = 'You must pass the server\'s name in the array (name)'