Skip to content

/AWS1/CL_ART=>LISTPACKAGEVERSIONS()

About ListPackageVersions

Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters. Package versions of all statuses will be returned by default when calling list-package-versions with no --status parameter.

Method Signature

IMPORTING

Required arguments:

IV_DOMAIN TYPE /AWS1/ARTDOMAINNAME /AWS1/ARTDOMAINNAME

The name of the domain that contains the repository that contains the requested package versions.

IV_REPOSITORY TYPE /AWS1/ARTREPOSITORYNAME /AWS1/ARTREPOSITORYNAME

The name of the repository that contains the requested package versions.

IV_FORMAT TYPE /AWS1/ARTPACKAGEFORMAT /AWS1/ARTPACKAGEFORMAT

The format of the package versions you want to list.

IV_PACKAGE TYPE /AWS1/ARTPACKAGENAME /AWS1/ARTPACKAGENAME

The name of the package for which you want to request package versions.

Optional arguments:

IV_DOMAINOWNER TYPE /AWS1/ARTACCOUNTID /AWS1/ARTACCOUNTID

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

IV_NAMESPACE TYPE /AWS1/ARTPACKAGENAMESPACE /AWS1/ARTPACKAGENAMESPACE

The namespace of the package that contains the requested package versions. The package component that specifies its namespace depends on its type. For example:

The namespace is required when deleting package versions of the following formats:

  • Maven

  • Swift

  • generic

  • The namespace of a Maven package version is its groupId.

  • The namespace of an npm or Swift package version is its scope.

  • The namespace of a generic package is its namespace.

  • Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.

IV_STATUS TYPE /AWS1/ARTPACKAGEVERSIONSTATUS /AWS1/ARTPACKAGEVERSIONSTATUS

A string that filters the requested package versions by status.

IV_SORTBY TYPE /AWS1/ARTPACKAGEVRSSORTTYPE /AWS1/ARTPACKAGEVRSSORTTYPE

How to sort the requested list of package versions.

IV_MAXRESULTS TYPE /AWS1/ARTLISTPACKAGEVRSSMAXRSS /AWS1/ARTLISTPACKAGEVRSSMAXRSS

The maximum number of results to return per page.

IV_NEXTTOKEN TYPE /AWS1/ARTPAGINATIONTOKEN /AWS1/ARTPAGINATIONTOKEN

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

IV_ORIGINTYPE TYPE /AWS1/ARTPACKAGEVRSORIGINTYPE /AWS1/ARTPACKAGEVRSORIGINTYPE

The originType used to filter package versions. Only package versions with the provided originType will be returned.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_ARTLSTPACKAGEVRSSRSLT /AWS1/CL_ARTLSTPACKAGEVRSSRSLT