DedicatedHostsOperationsExtensions.ListByHostGroupAsync Method

Definition

Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.DedicatedHost>> ListByHostGroupAsync (this Microsoft.Azure.Management.Compute.IDedicatedHostsOperations operations, string resourceGroupName, string hostGroupName, System.Threading.CancellationToken cancellationToken = default);
static member ListByHostGroupAsync : Microsoft.Azure.Management.Compute.IDedicatedHostsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.DedicatedHost>>
<Extension()>
Public Function ListByHostGroupAsync (operations As IDedicatedHostsOperations, resourceGroupName As String, hostGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of DedicatedHost))

Parameters

operations
IDedicatedHostsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

hostGroupName
String

The name of the dedicated host group.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to