Describe Images
ec2_describe_images | R Documentation |
Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you¶
Description¶
Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.
The images available to you include public images, private images that you own, and private images owned by other Amazon Web Services accounts for which you have explicit launch permissions.
Recently deregistered images appear in the returned results for a short interval and then return empty results. After all instances that reference a deregistered AMI are terminated, specifying the ID of the image will eventually return an error indicating that the AMI ID cannot be found.
When Allowed AMIs is set to enabled
, only allowed images are returned
in the results, with the imageAllowed
field set to true
for each
image. In audit-mode
, the imageAllowed
field is set to true
for
images that meet the account's Allowed AMIs criteria, and false
for
images that don't meet the criteria. For more information, see
enable_allowed_images_settings
.
We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.
The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.
Usage¶
ec2_describe_images(ExecutableUsers, ImageIds, Owners,
IncludeDeprecated, IncludeDisabled, MaxResults, NextToken, DryRun,
Filters)
Arguments¶
ExecutableUsers |
Scopes the images by users with explicit launch permissions.
Specify an Amazon Web Services account ID,
|
ImageIds |
The image IDs. Default: Describes all images available to you. |
Owners |
Scopes the results to images with the specified owners. You can
specify a combination of Amazon Web Services account IDs,
|
IncludeDeprecated |
Specifies whether to include deprecated AMIs. Default: No deprecated AMIs are included in the response. If you are the AMI owner, all deprecated AMIs appear in the response regardless of what you specify for this parameter. |
IncludeDisabled |
Specifies whether to include disabled AMIs. Default: No disabled AMIs are included in the response. |
MaxResults |
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination. |
NextToken |
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. |
DryRun |
Checks whether you have the required permissions for the action,
without actually making the request, and provides an error response. If
you have the required permissions, the error response is
|
Filters |
The filters.
|
Value¶
A list with the following syntax:
list(
NextToken = "string",
Images = list(
list(
PlatformDetails = "string",
UsageOperation = "string",
BlockDeviceMappings = list(
list(
Ebs = list(
DeleteOnTermination = TRUE|FALSE,
Iops = 123,
SnapshotId = "string",
VolumeSize = 123,
VolumeType = "standard"|"io1"|"io2"|"gp2"|"sc1"|"st1"|"gp3",
KmsKeyId = "string",
Throughput = 123,
OutpostArn = "string",
Encrypted = TRUE|FALSE
),
NoDevice = "string",
DeviceName = "string",
VirtualName = "string"
)
),
Description = "string",
EnaSupport = TRUE|FALSE,
Hypervisor = "ovm"|"xen",
ImageOwnerAlias = "string",
Name = "string",
RootDeviceName = "string",
RootDeviceType = "ebs"|"instance-store",
SriovNetSupport = "string",
StateReason = list(
Code = "string",
Message = "string"
),
Tags = list(
list(
Key = "string",
Value = "string"
)
),
VirtualizationType = "hvm"|"paravirtual",
BootMode = "legacy-bios"|"uefi"|"uefi-preferred",
TpmSupport = "v2.0",
DeprecationTime = "string",
ImdsSupport = "v2.0",
SourceInstanceId = "string",
DeregistrationProtection = "string",
LastLaunchedTime = "string",
ImageAllowed = TRUE|FALSE,
SourceImageId = "string",
SourceImageRegion = "string",
ImageId = "string",
ImageLocation = "string",
State = "pending"|"available"|"invalid"|"deregistered"|"transient"|"failed"|"error"|"disabled",
OwnerId = "string",
CreationDate = "string",
Public = TRUE|FALSE,
ProductCodes = list(
list(
ProductCodeId = "string",
ProductCodeType = "devpay"|"marketplace"
)
),
Architecture = "i386"|"x86_64"|"arm64"|"x86_64_mac"|"arm64_mac",
ImageType = "machine"|"kernel"|"ramdisk",
KernelId = "string",
RamdiskId = "string",
Platform = "Windows"
)
)
)
Request syntax¶
svc$describe_images(
ExecutableUsers = list(
"string"
),
ImageIds = list(
"string"
),
Owners = list(
"string"
),
IncludeDeprecated = TRUE|FALSE,
IncludeDisabled = TRUE|FALSE,
MaxResults = 123,
NextToken = "string",
DryRun = TRUE|FALSE,
Filters = list(
list(
Name = "string",
Values = list(
"string"
)
)
)
)
Examples¶
## Not run:
# This example describes the specified AMI.
svc$describe_images(
ImageIds = list(
"ami-5731123e"
)
)
## End(Not run)