Service/Rackspace/Servers.php
- 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
- Parent(s)
- \Zend_Service_Rackspace_Abstract
Constants
Methods


changeBackupSchedule(string $id, string $weekly, string $daily) : boolean
Change the backup schedule of a server
Name | Type | Description |
---|---|---|
$id | string | server's Id |
$weekly | string | |
$daily | string |
Type | Description |
---|---|
boolean |


changeServerName(string $id, string $name) : boolean
Change the server's name
Name | Type | Description |
---|---|---|
$id | string | |
$name | string |
Type | Description |
---|---|
boolean |


changeServerPassword(string $id, string $password) : boolean
Change the admin password of the server
Name | Type | Description |
---|---|---|
$id | string | |
$password | string |
Type | Description |
---|---|
boolean |


confirmResizeServer(string $id) : boolean
Confirm resize of a server
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
boolean |


createImage(string $serverId, string $name) : \Zend_Service_Rackspace_Servers_Image
Create an image for a serverId
Name | Type | Description |
---|---|---|
$serverId | string | |
$name | string |
Type | Description |
---|---|
\Zend_Service_Rackspace_Servers_Image |


createServer(array $data, array $metadata = array(), array $files = array()) : \Zend_Service_Rackspace_Servers_Server | boolean
Create a new server
Name | Type | Description |
---|---|---|
$data | array | |
$metadata | array | |
$files | array |
Type | Description |
---|---|
\Zend_Service_Rackspace_Servers_Server | boolean |


createSharedIpGroup(string $name, string $serverId) : array | boolean
Create a shared Ip group
Name | Type | Description |
---|---|---|
$name | string | |
$serverId | string |
Type | Description |
---|---|
array | boolean |


deleteImage(string $id) : boolean
Delete an image
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
boolean |


deleteServer(string $id) : boolean
Delete a server
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
boolean |


deleteSharedIpGroup(integer $id) : boolean
Delete a Shared Ip Group
Name | Type | Description |
---|---|---|
$id | integer |
Type | Description |
---|---|
boolean |


disableBackupSchedule(string $id) : boolean
Disable the backup schedule for a server
Name | Type | Description |
---|---|---|
$id | string | server's Id |
Type | Description |
---|---|
boolean |


getBackupSchedule(string $id) : array | boolean
Get the backup schedule of a server
Name | Type | Description |
---|---|---|
$id | string | server's Id |
Type | Description |
---|---|
array | boolean |


getFlavor(string $flavorId) : array | boolean
Get the detail of a flavor
Name | Type | Description |
---|---|---|
$flavorId | string |
Type | Description |
---|---|
array | boolean |


getImage(string $id) : \Zend_Service_Rackspace_Servers_Image | boolean
Get detail about an image
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
\Zend_Service_Rackspace_Servers_Image | boolean |


getServer(string $id) : \Zend_Service_Rackspace_Servers_Server
Get the specified server
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
\Zend_Service_Rackspace_Servers_Server |


getServerIp(string $id) : array | boolean
Get the server's IPs (public and private)
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
array | boolean |


getServerPrivateIp(string $id) : array | boolean
Get the Private IPs of a server
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
array | boolean |


getServerPublicIp(string $id) : array | boolean
Get the Public IPs of a server
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
array | boolean |


getSharedIpGroup(integer $id) : \Zend_Service_Rackspace_Servers_SharedIpGroup | boolean
Get the shared IP group
Name | Type | Description |
---|---|---|
$id | integer |
Type | Description |
---|---|
\Zend_Service_Rackspace_Servers_SharedIpGroup | boolean |


listFlavors(boolean $details = false) : array | boolean
Get the list of the flavors
Name | Type | Description |
---|---|---|
$details | boolean |
Type | Description |
---|---|
array | boolean |


listImages(boolean $details = false) : \Zend_Service_Rackspace_Servers_ImageList | boolean
Get the list of the images
Name | Type | Description |
---|---|---|
$details | boolean |
Type | Description |
---|---|
\Zend_Service_Rackspace_Servers_ImageList | boolean |


listServers(boolean $details = false) : \Zend_Service_Rackspace_Servers_ServerList | boolean
Get the list of the servers If $details is true returns detail info
Name | Type | Description |
---|---|---|
$details | boolean |
Type | Description |
---|---|
\Zend_Service_Rackspace_Servers_ServerList | boolean |


listSharedIpGroups(boolean $details = false) : \Zend_Service_Rackspace_Servers_SharedIpGroupList | boolean
Get the list of shared IP groups
Name | Type | Description |
---|---|---|
$details | boolean |
Type | Description |
---|---|
\Zend_Service_Rackspace_Servers_SharedIpGroupList | boolean |


rebootServer(string $id, boolean $hard = false) : boolean
Reboot a server
Name | Type | Description |
---|---|---|
$id | string | |
$hard | boolean |
Type | Description |
---|---|
boolean |


rebuildServer(string $id, string $imageId) : boolean
Rebuild a server
Name | Type | Description |
---|---|---|
$id | string | |
$imageId | string |
Type | Description |
---|---|
boolean |


resizeServer(string $id, string $flavorId) : boolean
Resize a server
Name | Type | Description |
---|---|---|
$id | string | |
$flavorId | string |
Type | Description |
---|---|
boolean |


revertResizeServer(string $id) : boolean
Revert resize of a server
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
boolean |


shareIpAddress(string $id, string $ip, string $groupId, $configure = true) : boolean
Share an ip address for a server (id)
Name | Type | Description |
---|---|---|
$id | string | server |
$ip | string | |
$groupId | string | |
$configure |
Type | Description |
---|---|
boolean |


unshareIpAddress(string $id, string $ip) : boolean
Unshare IP address for a server ($id)
Name | Type | Description |
---|---|---|
$id | string | |
$ip | string |
Type | Description |
---|---|
boolean |