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) : booleanChange 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) : booleanChange the server's name
| Name | Type | Description |
|---|---|---|
| $id | string | |
| $name | string |
| Type | Description |
|---|---|
| boolean |

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

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

createImage(string $serverId, string $name) : \Zend_Service_Rackspace_Servers_ImageCreate 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 | booleanCreate 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 | booleanCreate a shared Ip group
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $serverId | string |
| Type | Description |
|---|---|
| array | boolean |

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

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

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

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

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

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

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

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

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

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

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

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

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

listImages(boolean $details = false) : \Zend_Service_Rackspace_Servers_ImageList | booleanGet 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 | booleanGet 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 | booleanGet 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) : booleanReboot a server
| Name | Type | Description |
|---|---|---|
| $id | string | |
| $hard | boolean |
| Type | Description |
|---|---|
| boolean |

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

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

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

shareIpAddress(string $id, string $ip, string $groupId, $configure = true) : booleanShare 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) : booleanUnshare IP address for a server ($id)
| Name | Type | Description |
|---|---|---|
| $id | string | |
| $ip | string |
| Type | Description |
|---|---|
| boolean |