Share via


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: 2020-11-01-preview
  • Resource: SubscriptionUsageResource
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

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

Applies to