Service/Amazon/Ec2/Elasticip.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 [email protected] 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_Amazon
- Subpackage
- Ec2
- Version
- $Id$
\Zend_Service_Amazon_Ec2_Elasticip
Package: Zend_Service_Amazon\Ec2
Returns
An Amazon EC2 interface to allocate, associate, describe and release Elastic IP address
from your account.
- Parent(s)
- \Zend_Service_Amazon_Ec2_Abstract < \Zend_Service_Amazon_Abstract < \Zend_Service_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods
allocate() : string
Acquires an elastic IP address for use with your account
Returns
Type | Description |
---|---|
string | Returns the newly Allocated IP Address |
associate(string $instanceId, string $publicIp) : boolean
Associates an elastic IP address with an instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$instanceId | string | The instance to which the IP address is assigned |
$publicIp | string | IP address that you are assigning to the instance. |
Type | Description |
---|---|
boolean |
describe(string | array $publicIp = null) : array
Lists elastic IP addresses assigned to your account.
Parameters
Returns
Name | Type | Description |
---|---|---|
$publicIp | string | array | Elastic IP or list of addresses to describe. |
Type | Description |
---|---|
array |
disassocate(string $publicIp) : boolean
Disassociates the specified elastic IP address from the instance to which it is assigned.
This is an idempotent operation. If you enter it more than once, Amazon EC2 does not return an error.
ParametersName | Type | Description |
---|---|---|
$publicIp | string | IP address that you are disassociating from the instance. |
Type | Description |
---|---|
boolean |