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
17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 | |