SageMaker.Client.
list_hubs
(**kwargs)¶List all existing hubs.
Note
Hub APIs are only callable through SageMaker Studio.
See also: AWS API Documentation
Request Syntax
response = client.list_hubs(
NameContains='string',
CreationTimeBefore=datetime(2015, 1, 1),
CreationTimeAfter=datetime(2015, 1, 1),
LastModifiedTimeBefore=datetime(2015, 1, 1),
LastModifiedTimeAfter=datetime(2015, 1, 1),
SortBy='HubName'|'CreationTime'|'HubStatus'|'AccountIdOwner',
SortOrder='Ascending'|'Descending',
MaxResults=123,
NextToken='string'
)
ListHubs
request was truncated, the response includes a NextToken
. To retrieve the next set of hubs, use the token in the next request.dict
Response Syntax
{
'HubSummaries': [
{
'HubName': 'string',
'HubArn': 'string',
'HubDisplayName': 'string',
'HubDescription': 'string',
'HubSearchKeywords': [
'string',
],
'HubStatus': 'InService'|'Creating'|'Updating'|'Deleting'|'CreateFailed'|'UpdateFailed'|'DeleteFailed',
'CreationTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
HubSummaries (list) --
The summaries of the listed hubs.
(dict) --
Information about a hub.
HubName (string) --
The name of the hub.
HubArn (string) --
The Amazon Resource Name (ARN) of the hub.
HubDisplayName (string) --
The display name of the hub.
HubDescription (string) --
A description of the hub.
HubSearchKeywords (list) --
The searchable keywords for the hub.
HubStatus (string) --
The status of the hub.
CreationTime (datetime) --
The date and time that the hub was created.
LastModifiedTime (datetime) --
The date and time that the hub was last modified.
NextToken (string) --
If the response is truncated, SageMaker returns this token. To retrieve the next set of hubs, use it in the subsequent request.