Share via


WebSiteResource.GetUsagesAsync(String, CancellationToken) Method

Definition

Description for Gets the quota usage information of an app (or deployment slot, if specified).

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/usages
  • Operation Id: WebApps_ListUsages
  • Default Api Version: 2023-12-01
  • Resource: WebSiteResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.CsmUsageQuota> GetUsagesAsync (string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUsagesAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.CsmUsageQuota>
override this.GetUsagesAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.CsmUsageQuota>
Public Overridable Function GetUsagesAsync (Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CsmUsageQuota)

Parameters

filter
String

Return only information specified in the filter (using OData syntax). For example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to