getImages
getImages |
Purpose
Retrieve a list of AMI from AWS.
Synopsis
function getImages(Id:string, name:string, desc:string):list of EC2image
Arguments
Id
|
Image ID (or an empty string)
|
name
|
Image name (or an empty string)
|
desc
|
Image description (or an empty string)
|
Return value
List of images with the specified properties.
Example
The following example retrieves all images created by
aec2setup and the specification of the default image used to start new instances:
xpimgs:=getImages("","","Xpress for AEC2*") defimg:=getImages(aec2_image,"","")
Further information
1. Each of the parameters is used as a filter: the resulting list will keep only images with the corresponding property matching the filter. Filters support wildcard charcaters
"*" (any sequence of character possibly empty) and
"?" (any character). An empty string is equivalent to
"*" (any string).
2. Images created by the program
aec2setup have the string
"Xpress for AEC2" included in their description: this can be used to find existing images compatible with the package.
Related topics