Service/Amazon/Ec2/Image.php
- 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_Image
- 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
deregister(string $imageId) : boolean
Deregisters an AMI. Once deregistered, instances of the AMI can no longer be launched.
Name | Type | Description |
---|---|---|
$imageId | string | Unique ID of a machine image, returned by a call to RegisterImage or DescribeImages. |
Type | Description |
---|---|
boolean |
describe(string | array $imageId = null, string | array $owner = null, string | array $executableBy = null) : array
Returns information about AMIs, AKIs, and ARIs available to the user.
Name | Type | Description |
---|---|---|
$imageId | string | array | A list of image descriptions |
$owner | string | array | Owners of AMIs to describe. |
$executableBy | string | array | AMIs for which specified users have access. |
Type | Description |
---|---|
array |
describeAttribute(string $imageId, string $attribute) : void
Returns information about an attribute of an AMI. Only one attribute can be specified per call.
Name | Type | Description |
---|---|---|
$imageId | string | ID of the AMI for which an attribute will be described. |
$attribute | string | Specifies the attribute to describe. Valid Attributes are launchPermission, productCodes |
modifyAttribute(string $imageId, string $attribute, string $operationType = 'add', string | array $userId = null, string | array $userGroup = null, string $productCode = null) : boolean
Modifies an attribute of an AMI.
Name | Type | Description |
---|---|---|
$imageId | string | AMI ID to modify. |
$attribute | string | Specifies the attribute to modify. See the preceding attributes table for supported attributes. |
$operationType | string | Specifies the operation to perform on the attribute. See the preceding attributes table for supported operations for attributes. Valid Values: add | remove Required for launchPermssion Attribute |
$userId | string | array | User IDs to add to or remove from the launchPermission attribute. Required for launchPermssion Attribute |
$userGroup | string | array | User groups to add to or remove from the launchPermission attribute. Currently, the all group is available, which will make it a public AMI. Required for launchPermssion Attribute |
$productCode | string | Attaches a product code to the AMI. Currently only one product code can be associated with an AMI. Once set, the product code cannot be changed or reset. Required for productCodes Attribute |
Type | Description |
---|---|
boolean |
register(string $imageLocation) : string
Registers an AMI with Amazon EC2. Images must be registered before they can be launched.
Name | Type | Description |
---|---|---|
$imageLocation | string | Full path to your AMI manifest in Amazon S3 storage. |
Type | Description |
---|---|
string | The ami fro the newly registred image; |
resetAttribute(string $imageId, String $attribute) : boolean
Resets an attribute of an AMI to its default value. The productCodes attribute cannot be reset
Name | Type | Description |
---|---|---|
$imageId | string | ID of the AMI for which an attribute will be reset. |
$attribute | String | Specifies the attribute to reset. Currently, only launchPermission is supported. In the case of launchPermission, all public and explicit launch permissions for the AMI are revoked. |
Type | Description |
---|---|
boolean |