Skip to content

List the contents of a hub

Description

List the contents of a hub.

Usage

sagemaker_list_hub_contents(HubName, HubContentType, NameContains,
  MaxSchemaVersion, CreationTimeBefore, CreationTimeAfter, SortBy,
  SortOrder, MaxResults, NextToken)

Arguments

  • HubName

    [required] The name of the hub to list the contents of.

  • HubContentType

    [required] The type of hub content to list.

  • NameContains

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

  • MaxSchemaVersion

    The upper bound of the hub content schema verion.

  • CreationTimeBefore

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

  • CreationTimeAfter

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

  • SortBy

    Sort hub content versions by either name or creation time.

  • SortOrder

    Sort hubs by ascending or descending order.

  • MaxResults

    The maximum amount of hub content to list.

  • NextToken

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

Value

A list with the following syntax:

list(
  HubContentSummaries = list(
    list(
      HubContentName = "string",
      HubContentArn = "string",
      SageMakerPublicHubContentArn = "string",
      HubContentVersion = "string",
      HubContentType = "Model"|"Notebook"|"ModelReference"|"DataSet"|"JsonDoc",
      DocumentSchemaVersion = "string",
      HubContentDisplayName = "string",
      HubContentDescription = "string",
      SupportStatus = "Supported"|"Deprecated"|"Restricted",
      HubContentSearchKeywords = list(
        "string"
      ),
      HubContentStatus = "Available"|"Importing"|"Deleting"|"ImportFailed"|"DeleteFailed"|"PendingImport"|"PendingDelete",
      CreationTime = as.POSIXct(
        "2015-01-01"
      ),
      OriginalCreationTime = as.POSIXct(
        "2015-01-01"
      )
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_hub_contents(
  HubName = "string",
  HubContentType = "Model"|"Notebook"|"ModelReference"|"DataSet"|"JsonDoc",
  NameContains = "string",
  MaxSchemaVersion = "string",
  CreationTimeBefore = as.POSIXct(
    "2015-01-01"
  ),
  CreationTimeAfter = as.POSIXct(
    "2015-01-01"
  ),
  SortBy = "HubContentName"|"CreationTime"|"HubContentStatus",
  SortOrder = "Ascending"|"Descending",
  MaxResults = 123,
  NextToken = "string"
)