Skip to content

/AWS1/CL_SGM=>LISTIMAGEVERSIONS()

About ListImageVersions

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

Method Signature

IMPORTING

Required arguments:

IV_IMAGENAME TYPE /AWS1/SGMIMAGENAME /AWS1/SGMIMAGENAME

The name of the image to list the versions of.

Optional arguments:

IV_CREATIONTIMEAFTER TYPE /AWS1/SGMTIMESTAMP /AWS1/SGMTIMESTAMP

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

IV_CREATIONTIMEBEFORE TYPE /AWS1/SGMTIMESTAMP /AWS1/SGMTIMESTAMP

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

IV_LASTMODIFIEDTIMEAFTER TYPE /AWS1/SGMTIMESTAMP /AWS1/SGMTIMESTAMP

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

IV_LASTMODIFIEDTIMEBEFORE TYPE /AWS1/SGMTIMESTAMP /AWS1/SGMTIMESTAMP

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

IV_MAXRESULTS TYPE /AWS1/SGMMAXRESULTS /AWS1/SGMMAXRESULTS

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

IV_NEXTTOKEN TYPE /AWS1/SGMNEXTTOKEN /AWS1/SGMNEXTTOKEN

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

IV_SORTBY TYPE /AWS1/SGMIMAGEVERSIONSORTBY /AWS1/SGMIMAGEVERSIONSORTBY

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

IV_SORTORDER TYPE /AWS1/SGMIMAGEVERSIONSORTORDER /AWS1/SGMIMAGEVERSIONSORTORDER

The sort order. The default value is DESCENDING.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SGMLISTIMAGEVRSSRSP /AWS1/CL_SGMLISTIMAGEVRSSRSP