WebSiteSlotResource.GetUsagesSlot(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}/slots/{slot}/usages
  • Operation Id: WebApps_ListUsagesSlot
  • Default Api Version: 2023-12-01
  • Resource: WebSiteSlotResource
public virtual Azure.Pageable<Azure.ResourceManager.AppService.Models.CsmUsageQuota> GetUsagesSlot (string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUsagesSlot : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AppService.Models.CsmUsageQuota>
override this.GetUsagesSlot : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.AppService.Models.CsmUsageQuota>
Public Overridable Function GetUsagesSlot (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