WebSiteResource.GetUsages(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: 2024-04-01
  • Resource: WebSiteResource
public virtual Azure.Pageable<Azure.ResourceManager.AppService.Models.CsmUsageQuota> GetUsages (string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUsages : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AppService.Models.CsmUsageQuota>
override this.GetUsages : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AppService.Models.CsmUsageQuota>
Public Overridable Function GetUsages (Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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

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

Applies to