Share via


HDInsightClusterResource.GetVirtualMachineHostsAsync Method

Definition

Lists the HDInsight clusters hosts

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/listHosts
  • Operation Id: VirtualMachines_ListHosts
  • Default Api Version: 2024-08-01-preview
public virtual Azure.AsyncPageable<Azure.ResourceManager.HDInsight.Models.HDInsightClusterHostInfo> GetVirtualMachineHostsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualMachineHostsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.HDInsight.Models.HDInsightClusterHostInfo>
override this.GetVirtualMachineHostsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.HDInsight.Models.HDInsightClusterHostInfo>
Public Overridable Function GetVirtualMachineHostsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of HDInsightClusterHostInfo)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of HDInsightClusterHostInfo that may take multiple service requests to iterate over.

Applies to