Skip to content

Describe Image Usage Report Entries

ec2_describe_image_usage_report_entries R Documentation

Describes the entries in image usage reports, showing how your images are used across other Amazon Web Services accounts

Description

Describes the entries in image usage reports, showing how your images are used across other Amazon Web Services accounts.

For more information, see View your AMI usage in the Amazon EC2 User Guide.

Usage

ec2_describe_image_usage_report_entries(ImageIds, ReportIds, NextToken,
  Filters, DryRun, MaxResults)

Arguments

ImageIds

The IDs of the images for filtering the report entries. If specified, only report entries containing these images are returned.

ReportIds

The IDs of the usage reports.

NextToken

The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

Filters

The filters.

  • account-id - A 12-digit Amazon Web Services account ID.

  • creation-time - The time when the report was created, in the ISO 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example, ⁠2025-11-29T11:04:43.305Z⁠. You can use a wildcard (*), for example, ⁠2025-11-29T*⁠, which matches an entire day.

  • resource-type - The resource type (ec2:Instance | ec2:LaunchTemplate).

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 DryRunOperation. Otherwise, it is UnauthorizedOperation.

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.

Value

A list with the following syntax:

list(
  NextToken = "string",
  ImageUsageReportEntries = list(
    list(
      ResourceType = "string",
      ReportId = "string",
      UsageCount = 123,
      AccountId = "string",
      ImageId = "string",
      ReportCreationTime = as.POSIXct(
        "2015-01-01"
      )
    )
  )
)

Request syntax

svc$describe_image_usage_report_entries(
  ImageIds = list(
    "string"
  ),
  ReportIds = list(
    "string"
  ),
  NextToken = "string",
  Filters = list(
    list(
      Name = "string",
      Values = list(
        "string"
      )
    )
  ),
  DryRun = TRUE|FALSE,
  MaxResults = 123
)