CapacityReservationCollection.GetAll 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 all of the capacity reservations in the specified capacity reservation group. Use the nextLink property in the response to get the next page of capacity reservations.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations
- Operation Id: CapacityReservations_ListByCapacityReservationGroup
- Default Api Version: 2025-11-01
- Resource: CapacityReservationResource
public virtual Azure.Pageable<Azure.ResourceManager.Compute.CapacityReservationResource> GetAll(Azure.ResourceManager.Compute.Models.CapacityReservationGroupGetExpand? expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationGroupGetExpand> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.CapacityReservationResource>
override this.GetAll : Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationGroupGetExpand> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.CapacityReservationResource>
Public Overridable Function GetAll (Optional expand As Nullable(Of CapacityReservationGroupGetExpand) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of CapacityReservationResource)
Parameters
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
A collection of CapacityReservationResource that may take multiple service requests to iterate over.