Partilhar via


VirtualMachinesOperationsExtensions.ListHostsAsync Método

Definição

Lista os hosts de clusters HDInsight

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

Parâmetros

operations
IVirtualMachinesOperations

O grupo de operações para esse método de extensão.

resourceGroupName
String

O nome do grupo de recursos.

clusterName
String

O nome do cluster.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a