HDInsightClusterResource.GetVirtualMachineHostsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.