HDInsightClusterResource.GetVirtualMachineHosts(CancellationToken) 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.Pageable<Azure.ResourceManager.HDInsight.Models.HDInsightClusterHostInfo> GetVirtualMachineHosts (System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualMachineHosts : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.HDInsight.Models.HDInsightClusterHostInfo>
override this.GetVirtualMachineHosts : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.HDInsight.Models.HDInsightClusterHostInfo>
Public Overridable Function GetVirtualMachineHosts (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of HDInsightClusterHostInfo)
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of HDInsightClusterHostInfo that may take multiple service requests to iterate over.