ListClusterNodes
Retrieves the list of instances (also called nodes interchangeably) in a SageMaker HyperPod cluster.
Request Syntax
{
"ClusterName": "string
",
"CreationTimeAfter": number
,
"CreationTimeBefore": number
,
"InstanceGroupNameContains": "string
",
"MaxResults": number
,
"NextToken": "string
",
"SortBy": "string
",
"SortOrder": "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 string name or the Amazon Resource Name (ARN) of the SageMaker HyperPod cluster in which you want to retrieve the list of nodes.
Type: String
Length Constraints: 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
-
A filter that returns nodes in a SageMaker HyperPod cluster created after the specified time. Timestamps are formatted according to the ISO 8601 standard.
Acceptable formats include:
-
YYYY-MM-DDThh:mm:ss.sssTZD
(UTC), for example,2014-10-01T20:30:00.000Z
-
YYYY-MM-DDThh:mm:ss.sssTZD
(with offset), for example,2014-10-01T12:30:00.000-08:00
-
YYYY-MM-DD
, for example,2014-10-01
-
Unix time in seconds, for example,
1412195400
. This is also referred to as Unix Epoch time and represents the number of seconds since midnight, January 1, 1970 UTC.
For more information about the timestamp format, see Timestamp in the AWS Command Line Interface User Guide.
Type: Timestamp
Required: No
-
- CreationTimeBefore
-
A filter that returns nodes in a SageMaker HyperPod cluster created before the specified time. The acceptable formats are the same as the timestamp formats for
CreationTimeAfter
. For more information about the timestamp format, see Timestamp in the AWS Command Line Interface User Guide.Type: Timestamp
Required: No
- InstanceGroupNameContains
-
A filter that returns the instance groups whose name contain a specified string.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 63.
Pattern:
^[a-zA-Z0-9](-*[a-zA-Z0-9])*$
Required: No
- MaxResults
-
The maximum number of nodes to return in the response.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 100.
Required: No
- NextToken
-
If the result of the previous
ListClusterNodes
request was truncated, the response includes aNextToken
. To retrieve the next set of cluster nodes, use the token in the next request.Type: String
Length Constraints: Maximum length of 8192.
Pattern:
.*
Required: No
- SortBy
-
The field by which to sort results. The default value is
CREATION_TIME
.Type: String
Valid Values:
CREATION_TIME | NAME
Required: No
- SortOrder
-
The sort order for results. The default value is
Ascending
.Type: String
Valid Values:
Ascending | Descending
Required: No
Response Syntax
{
"ClusterNodeSummaries": [
{
"InstanceGroupName": "string",
"InstanceId": "string",
"InstanceStatus": {
"Message": "string",
"Status": "string"
},
"InstanceType": "string",
"LaunchTime": number
}
],
"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.
- ClusterNodeSummaries
-
The summaries of listed instances in a SageMaker HyperPod cluster
Type: Array of ClusterNodeSummary objects
- NextToken
-
The next token specified for listing instances in a SageMaker HyperPod cluster.
Type: String
Length Constraints: Maximum length of 8192.
Pattern:
.*
Errors
For information about the errors that are common to all actions, see Common Errors.
- 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: