Retrieves the list of SageMaker HyperPod clusters¶
Description¶
Retrieves the list of SageMaker HyperPod clusters.
Usage¶
sagemaker_list_clusters(CreationTimeAfter, CreationTimeBefore,
MaxResults, NameContains, NextToken, SortBy, SortOrder, TrainingPlanArn)
Arguments¶
-
CreationTimeAfterSet a start time for the time range during which you want to list SageMaker HyperPod clusters. 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.000ZYYYY-MM-DDThh:mm:ss.sssTZD(with offset), for example,2014-10-01T12:30:00.000-08:00YYYY-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 Amazon Web Services Command Line Interface User Guide.
-
CreationTimeBeforeSet an end time for the time range during which you want to list SageMaker HyperPod clusters. 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 Amazon Web Services Command Line Interface User Guide. -
MaxResultsSpecifies the maximum number of clusters to evaluate for the operation (not necessarily the number of matching items). After SageMaker processes the number of clusters up to
MaxResults, it stops the operation and returns the matching clusters up to that point. If all the matching clusters are desired, SageMaker will go through all the clusters untilNextTokenis empty. -
NameContainsSet the maximum number of instances to print in the list.
-
NextTokenSet the next token to retrieve the list of SageMaker HyperPod clusters.
-
SortByThe field by which to sort results. The default value is
CREATION_TIME. -
SortOrderThe sort order for results. The default value is
Ascending. -
TrainingPlanArnThe Amazon Resource Name (ARN); of the training plan to filter clusters by. For more information about reserving GPU capacity for your SageMaker HyperPod clusters using Amazon SageMaker Training Plan, see
create_training_plan.
Value¶
A list with the following syntax:
list(
NextToken = "string",
ClusterSummaries = list(
list(
ClusterArn = "string",
ClusterName = "string",
CreationTime = as.POSIXct(
"2015-01-01"
),
ClusterStatus = "Creating"|"Deleting"|"Failed"|"InService"|"RollingBack"|"SystemUpdating"|"Updating",
TrainingPlanArns = list(
"string"
),
ImageVersionStatus = "UpToDate"|"UpdateAvailable"|"SecurityUpdateRequired"|"EndOfLife"
)
)
)