VirtualMachinesOperationsExtensions.ListHostsAsync Method

Definition

Lists the HDInsight clusters hosts

public static System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.Management.HDInsight.Models.HostInfo>> ListHostsAsync (this Microsoft.Azure.Management.HDInsight.IVirtualMachinesOperations operations, string resourceGroupName, string clusterName, System.Threading.CancellationToken cancellationToken = default);
static member ListHostsAsync : Microsoft.Azure.Management.HDInsight.IVirtualMachinesOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Azure.Management.HDInsight.Models.HostInfo>>
<Extension()>
Public Function ListHostsAsync (operations As IVirtualMachinesOperations, resourceGroupName As String, clusterName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of HostInfo))

Parameters

operations
IVirtualMachinesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

clusterName
String

The name of the cluster.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to