list_cluster_nodes
¶
list_cluster_nodes(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
cluster_name: Optional[ClusterNameOrArn] = None,
creation_time_after: Optional[Timestamp] = None,
creation_time_before: Optional[Timestamp] = None,
instance_group_name_contains: Optional[ClusterInstanceGroupName] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
sort_by: Optional[ClusterSortBy] = None,
sort_order: Optional[SortOrder] = None,
include_node_logical_ids: Optional[IncludeNodeLogicalIdsBoolean] = None,
) -> ListClusterNodesResponse
Retrieves the list of instances (also called nodes interchangeably) in a SageMaker HyperPod cluster.
Parameters:
-
cluster_name(Optional[ClusterNameOrArn], default:None) –The string name or the Amazon Resource Name (ARN) of the SageMaker HyperPod cluster in which you want to retrieve the list of nodes.
-
creation_time_after(Optional[Timestamp], default:None) –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 Amazon Web Services Command Line Interface User Guide.
-
-
creation_time_before(Optional[Timestamp], default:None) –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. -
instance_group_name_contains(Optional[ClusterInstanceGroupName], default:None) –A filter that returns the instance groups whose name contain a specified string.
-
max_results(Optional[MaxResults], default:None) –The maximum number of nodes to return in the response.
-
next_token(Optional[NextToken], default:None) –If the result of the previous
ListClusterNodesrequest was truncated, the response includes aNextToken. To retrieve the next set of cluster nodes, use the token in the next request. -
sort_by(Optional[ClusterSortBy], default:None) –The field by which to sort results. The default value is
CREATION_TIME. -
sort_order(Optional[SortOrder], default:None) –The sort order for results. The default value is
Ascending. -
include_node_logical_ids(Optional[IncludeNodeLogicalIdsBoolean], default:None) –Specifies whether to include nodes that are still being provisioned in the response. When set to true, the response includes all nodes regardless of their provisioning status. When set to
False(default), only nodes with assignedInstanceIdsare returned.
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/sage_maker.py
19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 19545 19546 19547 19548 19549 19550 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 | |