Service/Rackspace/Servers.php
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
- Subpackage
- Rackspace
\Zend_Service_Rackspace_Servers
Package: Zend_Service- Parent(s)
- \Zend_Service_Rackspace_Abstract
Constants
Methods
changeBackupSchedule(string $id, string $weekly, string $daily) : boolean
Change the backup schedule of a server
ParametersName | Type | Description |
---|
$id | string | server's Id |
---|
$weekly | string | |
---|
$daily | string | |
---|
Returns changeServerPassword(string $id, string $password) : boolean
Change the admin password of the server
ParametersName | Type | Description |
---|
$id | string | |
---|
$password | string | |
---|
Returns confirmResizeServer(string $id) : boolean
Confirm resize of a server
During a resize operation, the original server is saved for a period of time to allow roll
back if there is a problem. Once the newly resized server is tested and has been confirmed
to be functioning properly, use this operation to confirm the resize. After confirmation,
the original server is removed and cannot be rolled back to. All resizes are automatically
confirmed after 24 hours if they are not explicitly confirmed or reverted.
ParametersName | Type | Description |
---|
$id | string | |
---|
ReturnsdisableBackupSchedule(string $id) : boolean
Disable the backup schedule for a server
ParametersName | Type | Description |
---|
$id | string | server's Id |
---|
Returns getBackupSchedule(string $id) : array | boolean
Get the backup schedule of a server
ParametersName | Type | Description |
---|
$id | string | server's Id |
---|
ReturnsType | Description |
---|
array | boolean | |
getFlavor(string $flavorId) : array | boolean
Get the detail of a flavor
ParametersName | Type | Description |
---|
$flavorId | string | |
---|
ReturnsType | Description |
---|
array | boolean | |
getServerIp(string $id) : array | boolean
Get the server's IPs (public and private)
ParametersName | Type | Description |
---|
$id | string | |
---|
ReturnsType | Description |
---|
array | boolean | |
getServerPrivateIp(string $id) : array | boolean
Get the Private IPs of a server
ParametersName | Type | Description |
---|
$id | string | |
---|
ReturnsType | Description |
---|
array | boolean | |
getServerPublicIp(string $id) : array | boolean
Get the Public IPs of a server
ParametersName | Type | Description |
---|
$id | string | |
---|
ReturnsType | Description |
---|
array | boolean | |
listFlavors(boolean $details = false) : array | boolean
Get the list of the flavors
If $details is true returns detail info
ParametersName | Type | Description |
---|
$details | boolean | |
---|
ReturnsType | Description |
---|
array | boolean | |
listServers(boolean $details = false) : \Zend_Service_Rackspace_Servers_ServerList | boolean
Get the list of the servers
If $details is true returns detail info
ParametersName | Type | Description |
---|
$details | boolean | |
---|
Returns revertResizeServer(string $id) : boolean
Revert resize of a server
During a resize operation, the original server is saved for a period of time to allow for roll
back if there is a problem. If you determine there is a problem with a newly resized server,
use this operation to revert the resize and roll back to the original server. All resizes are
automatically confirmed after 24 hours if they have not already been confirmed explicitly or
reverted.
ParametersName | Type | Description |
---|
$id | string | |
---|
ReturnsshareIpAddress(string $id, string $ip, string $groupId, $configure = true) : boolean
Share an ip address for a server (id)
ParametersName | Type | Description |
---|
$id | string | server |
---|
$ip | string | |
---|
$groupId | string | |
---|
$configure | | |
---|
Returns unshareIpAddress(string $id, string $ip) : boolean
Unshare IP address for a server ($id)
ParametersName | Type | Description |
---|
$id | string | |
---|
$ip | string | |
---|
Returns updateServer(string $id, string $name = null, string $password = null) : boolean
Change the name or the admin password for a server
ParametersName | Type | Description |
---|
$id | string | |
---|
$name | string | |
---|
$password | string | |
---|
Returns