list_cluster_operations
async
¶
list_cluster_operations(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
cluster_name: Optional[ClusterNameOrArn] = None,
status: Optional[ClusterOperationStatus] = None,
type: Optional[ClusterOperationType] = None,
creation_time_after: Optional[Timestamp] = None,
creation_time_before: Optional[Timestamp] = None,
sort_by: Optional[ClusterOperationSortBy] = None,
sort_order: Optional[SortOrder] = None,
max_results: Optional[ClusterOperationMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListClusterOperationsResponse
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.
Parameters:
-
cluster_name(Optional[ClusterNameOrArn], default:None) –The name or Amazon Resource Name (ARN) of the HyperPod cluster for which to list operations.
-
status(Optional[ClusterOperationStatus], default:None) –The operation status to filter by. If specified, only operations with this status are returned. Valid values are
InProgress,Superseded, orDone. -
type(Optional[ClusterOperationType], default:None) –The operation type to filter by. If specified, only operations of this type are returned. Valid values are
ScalingorDeepHealthCheck. -
creation_time_after(Optional[Timestamp], default:None) –The start of the time range for filtering operations. Only operations created after this time are included in the results.
-
creation_time_before(Optional[Timestamp], default:None) –The end of the time range for filtering operations. Only operations created before this time are included in the results.
-
sort_by(Optional[ClusterOperationSortBy], default:None) –The field to use for sorting the operation list. Currently, the only supported value is
CreationTime. -
sort_order(Optional[SortOrder], default:None) –The order in which to sort the results. Valid values are
AscendingorDescending(the default isDescending). -
max_results(Optional[ClusterOperationMaxResults], default:None) –The maximum number of operations to return in the response. Valid range is 1 to 100.
-
next_token(Optional[NextToken], default:None) –A token to retrieve the next set of results. This token is obtained from the output of a previous
ListClusterOperationscall.
Raises:
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 19949 19950 19951 19952 19953 19954 19955 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969 19970 19971 19972 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 19985 19986 19987 19988 19989 19990 19991 19992 19993 19994 | |