list_cluster_nodes
async
¶
list_cluster_nodes(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 19836 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 | |