Service/Rackspace/Servers/Server.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service_Rackspace  
Subpackage
Servers  

\Zend_Service_Rackspace_Servers_Server

Package: Default

Constants

Constant  ERROR_PARAM_CONSTRUCT = 'You must pass a Zend_Service_Rackspace_Servers object and an array'
Constant  ERROR_PARAM_NO_NAME = 'You must pass the server\'s name in the array (name)'
Constant  ERROR_PARAM_NO_ID = 'You must pass the server\'s id in the array (id)'

Properties

Propertyprotectedarray $addresses = array()

Public and private IP addresses

Default valuearray()Details
Type
array
Propertyprotectedstring $adminPass =

Admin password, generated on a new server

Details
Type
string
Propertyprotectedstring $flavorId =

Flavor id of the server

Details
Type
string
Propertyprotectedstring $hostId =

Host id

Details
Type
string
Propertyprotectedstring $id =

Server's id

Details
Type
string
Propertyprotectedstring $imageId =

Image id of the server

Details
Type
string
Propertyprotectedarray $metadata = array()

Default valuearray()Details
Type
array
Propertyprotectedstring $name =

Server's name

Details
Type
string
Propertyprotectedinteger $progress =

Progress of the status

Details
Type
integer
Propertyprotected\Zend_Service_Rackspace_Servers $service =

The service that has created the server object

Propertyprotectedstring $status =

Server's status

Details
Type
string

Methods

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

Constructor

Parameters
Name Type Description
$service \Zend_Service_Rackspace_Servers
$data array
methodpublicchangeName(string $name) : boolean

Change the name of the server

Parameters
Name Type Description
$name string
Returns
Type Description
boolean
methodpublicchangePassword(string $password) : boolean

Change the admin password of the server

Parameters
Name Type Description
$password string
Returns
Type Description
boolean
methodpublicgetAdminPass() : string

Ge the server's admin password

Returns
Type Description
string
methodpublicgetFlavorId() : string

Get the server's flavor Id

Returns
Type Description
string
methodpublicgetHostId() : string

Get the server's host Id

Returns
Type Description
string
methodpublicgetId() : string

Get the server's id

Returns
Type Description
string
methodpublicgetImageId() : string

Get the server's image Id

Returns
Type Description
string
methodpublicgetMetadata(string $key = null) : array | string

Get the metadata of the container

If $key is empty return the array of metadata

Parameters
Name Type Description
$key string
Returns
Type Description
array | string
methodpublicgetName() : string

Get the name of the server

Returns
Type Description
string
methodpublicgetPrivateIp() : array | boolean

Get the private IPs

Returns
Type Description
array | boolean
methodpublicgetProgress() : integer | boolean

Get the progress's status

Returns
Type Description
integer | boolean
methodpublicgetPublicIp() : array | boolean

Get the public IPs

Returns
Type Description
array | boolean
methodpublicgetStatus() : string | boolean

Get the server's status

Returns
Type Description
string | boolean
methodpublicreboot( $hard = false) : boolean

Reboot the server

Parameters
Name Type Description
$hard
Returns
Type Description
boolean
methodpublictoArray() : array

To Array

Returns
Type Description
array
Documentation was generated by phpDocumentor 2.0.0a8.