Skip to content

/AWS1/CL_SGM=>LISTHUBCONTENTS()

About ListHubContents

List the contents of a hub.

Hub APIs are only callable through SageMaker Studio.

Method Signature

IMPORTING

Required arguments:

IV_HUBNAME TYPE /AWS1/SGMHUBNAME /AWS1/SGMHUBNAME

The name of the hub to list the contents of.

IV_HUBCONTENTTYPE TYPE /AWS1/SGMHUBCONTENTTYPE /AWS1/SGMHUBCONTENTTYPE

The type of hub content to list.

Optional arguments:

IV_NAMECONTAINS TYPE /AWS1/SGMNAMECONTAINS /AWS1/SGMNAMECONTAINS

Only list hub content if the name contains the specified string.

IV_MAXSCHEMAVERSION TYPE /AWS1/SGMDOCUMENTSCHEMAVERSION /AWS1/SGMDOCUMENTSCHEMAVERSION

The upper bound of the hub content schema verion.

IV_CREATIONTIMEBEFORE TYPE /AWS1/SGMTIMESTAMP /AWS1/SGMTIMESTAMP

Only list hub content that was created before the time specified.

IV_CREATIONTIMEAFTER TYPE /AWS1/SGMTIMESTAMP /AWS1/SGMTIMESTAMP

Only list hub content that was created after the time specified.

IV_SORTBY TYPE /AWS1/SGMHUBCONTENTSORTBY /AWS1/SGMHUBCONTENTSORTBY

Sort hub content versions by either name or creation time.

IV_SORTORDER TYPE /AWS1/SGMSORTORDER /AWS1/SGMSORTORDER

Sort hubs by ascending or descending order.

IV_MAXRESULTS TYPE /AWS1/SGMMAXRESULTS /AWS1/SGMMAXRESULTS

The maximum amount of hub content to list.

IV_NEXTTOKEN TYPE /AWS1/SGMNEXTTOKEN /AWS1/SGMNEXTTOKEN

If the response to a previous ListHubContents request was truncated, the response includes a NextToken. To retrieve the next set of hub content, use the token in the next request.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SGMLISTHUBCONTENTSRSP /AWS1/CL_SGMLISTHUBCONTENTSRSP