Freigeben über


VirtualMachinesOperationsExtensions.ListHostsAsync Methode

Definition

Listet die HDInsight-Clusterhosts auf.

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))

Parameter

operations
IVirtualMachinesOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe.

clusterName
String

Der Name des Clusters.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: