Service/Rackspace/Servers/Server.php

Show: PublicProtectedPrivateinherited
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 license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service_Rackspace  
Subpackage
Servers  

\Zend_Service_Rackspace_Servers_Server

Package: Zend_Service_Rackspace

Constants

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

Properties

>VPropertyprotectedarray $addresses = array()
Public and private IP addresses
Default valuearray()Details
Type
array
>VPropertyprotectedstring $adminPass
Admin password, generated on a new server
Details
Type
string
>VPropertyprotectedstring $flavorId
Flavor id of the server
Details
Type
string
>VPropertyprotectedstring $hostId
Host id
Details
Type
string
>VPropertyprotectedstring $id
Server's id
Details
Type
string
>VPropertyprotectedstring $imageId
Image id of the server
Details
Type
string
>VPropertyprotectedarray $metadata = array()
Default valuearray()Details
Type
array
>VPropertyprotectedstring $name
Server's name
Details
Type
string
>VPropertyprotectedinteger $progress
Progress of the status
Details
Type
integer
>VPropertyprotected\Zend_Service_Rackspace_Servers $service
The service that has created the server object
>VPropertyprotectedstring $status
Server's status
Details
Type
string

Methods

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

Constructor

Parameters
NameTypeDescription
$service\Zend_Service_Rackspace_Servers
$dataarray
methodpublicchangeName(string $name) : boolean

Change the name of the server

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
boolean
methodpublicchangePassword(string $password) : boolean

Change the admin password of the server

Parameters
NameTypeDescription
$passwordstring
Returns
TypeDescription
boolean
methodpublicgetAdminPass() : string

Ge the server's admin password

Returns
TypeDescription
string
methodpublicgetFlavorId() : string

Get the server's flavor Id

Returns
TypeDescription
string
methodpublicgetHostId() : string

Get the server's host Id

Returns
TypeDescription
string
methodpublicgetId() : string

Get the server's id

Returns
TypeDescription
string
methodpublicgetImageId() : string

Get the server's image Id

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

Get the metadata of the container

If $key is empty return the array of metadata
Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
array | string
methodpublicgetName() : string

Get the name of the server

Returns
TypeDescription
string
methodpublicgetPrivateIp() : array | boolean

Get the private IPs

Returns
TypeDescription
array | boolean
methodpublicgetProgress() : integer | boolean

Get the progress's status

Returns
TypeDescription
integer | boolean
methodpublicgetPublicIp() : array | boolean

Get the public IPs

Returns
TypeDescription
array | boolean
methodpublicgetStatus() : string | boolean

Get the server's status

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

Reboot the server

Parameters
NameTypeDescription
$hard
Returns
TypeDescription
boolean
methodpublictoArray() : array

To Array

Returns
TypeDescription
array
Documentation was generated by phpDocumentor 2.2.0 .