共用方式為


CapacityReservationCollection.GetAllAsync(CancellationToken) Method

Definition

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: 2024-07-01
  • Resource: CapacityReservationResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.CapacityReservationResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.CapacityReservationResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.CapacityReservationResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CapacityReservationResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to