SageMaker / Client / list_cluster_operations
list_cluster_operations¶
- SageMaker.Client.list_cluster_operations(**kwargs)¶
Retrieves a list of operation summaries for a specified HyperPod cluster, such as scaling operations and deep health checks. The operation supports filtering, sorting, and pagination of results.
See also: AWS API Documentation
Request Syntax
response = client.list_cluster_operations( ClusterName='string', Status='InProgress'|'Superseded'|'Done', Type='Scaling'|'DeepHealthCheck', CreationTimeAfter=datetime(2015, 1, 1), CreationTimeBefore=datetime(2015, 1, 1), SortBy='CreationTime', SortOrder='Ascending'|'Descending', MaxResults=123, NextToken='string' )
- Parameters:
ClusterName (string) –
[REQUIRED]
The name or Amazon Resource Name (ARN) of the HyperPod cluster for which to list operations.
Status (string) – The operation status to filter by. If specified, only operations with this status are returned. Valid values are
InProgress,Superseded, orDone.Type (string) – The operation type to filter by. If specified, only operations of this type are returned. Valid values are
ScalingorDeepHealthCheck.CreationTimeAfter (datetime) – The start of the time range for filtering operations. Only operations created after this time are included in the results.
CreationTimeBefore (datetime) – The end of the time range for filtering operations. Only operations created before this time are included in the results.
SortBy (string) – The field to use for sorting the operation list. Currently, the only supported value is
CreationTime.SortOrder (string) – The order in which to sort the results. Valid values are
AscendingorDescending(the default isDescending).MaxResults (integer) – The maximum number of operations to return in the response. Valid range is 1 to 100.
NextToken (string) – A token to retrieve the next set of results. This token is obtained from the output of a previous
ListClusterOperationscall.
- Return type:
dict
- Returns:
Response Syntax
{ 'NextToken': 'string', 'ClusterOperationSummaries': [ { 'OperationId': 'string', 'ClusterArn': 'string', 'Type': 'Scaling'|'DeepHealthCheck', 'Status': 'InProgress'|'Superseded'|'Done', 'CreationTime': datetime(2015, 1, 1) }, ] }
Response Structure
(dict) –
NextToken (string) –
A token to retrieve the next set of results. Include this token in subsequent
ListClusterOperationscalls to fetch more operations.ClusterOperationSummaries (list) –
A list of operation summaries matching the specified criteria.
(dict) –
A summary of an operation performed on a HyperPod cluster.
OperationId (string) –
The unique identifier (UUID) of the operation.
ClusterArn (string) –
The Amazon Resource Name (ARN) of the HyperPod cluster associated with the operation.
Type (string) –
The type of the operation. Valid values are
ScalingorDeepHealthCheck.Status (string) –
The current status of the operation. Valid values are
InProgress,Superseded, orDone.CreationTime (datetime) –
The timestamp when the operation was created.
Exceptions
SageMaker.Client.exceptions.ResourceNotFound