VirtualMachinesOperationsExtensions.ListHostsAsync 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
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.