DedicatedHostsOperations.ListByHostGroupAsync(String, String, CancellationToken) 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 virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.DedicatedHost> ListByHostGroupAsync (string resourceGroupName, string hostGroupName, System.Threading.CancellationToken cancellationToken = default);
abstract member ListByHostGroupAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.DedicatedHost>
override this.ListByHostGroupAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.Models.DedicatedHost>
Public Overridable Function ListByHostGroupAsync (resourceGroupName As String, hostGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DedicatedHost)

Parameters

resourceGroupName
String

The name of the resource group.

hostGroupName
String

The name of the dedicated host group.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

AsyncPageable<DedicatedHost>

Exceptions

resourceGroupName or hostGroupName is null.

Applies to