CapacityReservationGroupCollection.GetAllAsync 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.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups
  • Operation Id: CapacityReservationGroups_ListByResourceGroup
  • Default Api Version: 2024-07-01
  • Resource: CapacityReservationGroupResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.CapacityReservationGroupResource> GetAllAsync (Azure.ResourceManager.Compute.Models.CapacityReservationGroupGetExpand? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationGroupGetExpand> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.CapacityReservationGroupResource>
override this.GetAllAsync : Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationGroupGetExpand> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.CapacityReservationGroupResource>
Public Overridable Function GetAllAsync (Optional expand As Nullable(Of CapacityReservationGroupGetExpand) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CapacityReservationGroupResource)

Parameters

expand
Nullable<CapacityReservationGroupGetExpand>

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.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of CapacityReservationGroupResource that may take multiple service requests to iterate over.

Applies to