Skip to content

List Image Versions

sagemaker_list_image_versions R Documentation

Lists the versions of a specified image and their properties

Description

Lists the versions of a specified image and their properties. The list can be filtered by creation time or modified time.

Usage

sagemaker_list_image_versions(CreationTimeAfter, CreationTimeBefore,
  ImageName, LastModifiedTimeAfter, LastModifiedTimeBefore, MaxResults,
  NextToken, SortBy, SortOrder)

Arguments

CreationTimeAfter

A filter that returns only versions created on or after the specified time.

CreationTimeBefore

A filter that returns only versions created on or before the specified time.

ImageName

[required] The name of the image to list the versions of.

LastModifiedTimeAfter

A filter that returns only versions modified on or after the specified time.

LastModifiedTimeBefore

A filter that returns only versions modified on or before the specified time.

MaxResults

The maximum number of versions to return in the response. The default value is 10.

NextToken

If the previous call to list_image_versions didn't return the full set of versions, the call returns a token for getting the next set of versions.

SortBy

The property used to sort results. The default value is CREATION_TIME.

SortOrder

The sort order. The default value is DESCENDING.

Value

A list with the following syntax:

list(
  ImageVersions = list(
    list(
      CreationTime = as.POSIXct(
        "2015-01-01"
      ),
      FailureReason = "string",
      ImageArn = "string",
      ImageVersionArn = "string",
      ImageVersionStatus = "CREATING"|"CREATED"|"CREATE_FAILED"|"DELETING"|"DELETE_FAILED",
      LastModifiedTime = as.POSIXct(
        "2015-01-01"
      ),
      Version = 123
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_image_versions(
  CreationTimeAfter = as.POSIXct(
    "2015-01-01"
  ),
  CreationTimeBefore = as.POSIXct(
    "2015-01-01"
  ),
  ImageName = "string",
  LastModifiedTimeAfter = as.POSIXct(
    "2015-01-01"
  ),
  LastModifiedTimeBefore = as.POSIXct(
    "2015-01-01"
  ),
  MaxResults = 123,
  NextToken = "string",
  SortBy = "CREATION_TIME"|"LAST_MODIFIED_TIME"|"VERSION",
  SortOrder = "ASCENDING"|"DESCENDING"
)