ListClusterOperations
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.
Request Syntax
{
"ClusterName": "string",
"CreationTimeAfter": number,
"CreationTimeBefore": number,
"MaxResults": number,
"NextToken": "string",
"SortBy": "string",
"SortOrder": "string",
"Status": "string",
"Type": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- ClusterName
-
The name or Amazon Resource Name (ARN) of the HyperPod cluster for which to list operations.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 256.
Pattern:
((arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:cluster/[a-z0-9]{12})|([a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}))Required: Yes
- CreationTimeAfter
-
The start of the time range for filtering operations. Only operations created after this time are included in the results.
Type: Timestamp
Required: No
- CreationTimeBefore
-
The end of the time range for filtering operations. Only operations created before this time are included in the results.
Type: Timestamp
Required: No
- MaxResults
-
The maximum number of operations to return in the response. Valid range is 1 to 100.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 100.
Required: No
- NextToken
-
A token to retrieve the next set of results. This token is obtained from the output of a previous
ListClusterOperationscall.Type: String
Length Constraints: Minimum length of 0. Maximum length of 8192.
Pattern:
.*Required: No
- SortBy
-
The field to use for sorting the operation list. Currently, the only supported value is
CreationTime.Type: String
Valid Values:
CreationTimeRequired: No
- SortOrder
-
The order in which to sort the results. Valid values are
AscendingorDescending(the default isDescending).Type: String
Valid Values:
Ascending | DescendingRequired: No
- Status
-
The operation status to filter by. If specified, only operations with this status are returned. Valid values are
InProgress,Superseded, orDone.Type: String
Valid Values:
InProgress | Superseded | DoneRequired: No
- Type
-
The operation type to filter by. If specified, only operations of this type are returned. Valid values are
ScalingorDeepHealthCheck.Type: String
Valid Values:
Scaling | DeepHealthCheckRequired: No
Response Syntax
{
"ClusterOperationSummaries": [
{
"ClusterArn": "string",
"CreationTime": number,
"OperationId": "string",
"Status": "string",
"Type": "string"
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- ClusterOperationSummaries
-
A list of operation summaries matching the specified criteria.
Type: Array of ClusterOperationSummary objects
- NextToken
-
A token to retrieve the next set of results. Include this token in subsequent
ListClusterOperationscalls to fetch more operations.Type: String
Length Constraints: Minimum length of 0. Maximum length of 8192.
Pattern:
.*
Errors
For information about the errors that are common to all actions, see Common Error Types.
- ResourceNotFound
-
Resource being access is not found.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: