Share via


CapacityReservationGroupsOperationsExtensions.ListByResourceGroupAsync Method

Definition

Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups.

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

Parameters

operations
ICapacityReservationGroupsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

expand
String

The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to capacity reservation group in the response. Possible values include: 'virtualMachineScaleSetVMs/$ref', 'virtualMachines/$ref'

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to