Lenguaje

SubscriptionUsageCollection.GetAllAsync(CancellationToken) Method

Definition

Gets all subscription usage metrics in a given location.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/usages.
  • Operation Id. : SubscriptionUsages_ListByLocation.
  • Default Api Version. : 2025-08-01-preview.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Sql.SubscriptionUsageResource> GetAllAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.SubscriptionUsageResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.SubscriptionUsageResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SubscriptionUsageResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of SubscriptionUsageResource that may take multiple service requests to iterate over.

Applies to