共用方式為


WebSiteSlotResource.GetUsagesSlotAsync(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.AsyncPageable<Azure.ResourceManager.AppService.Models.CsmUsageQuota> GetUsagesSlotAsync (string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUsagesSlotAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.CsmUsageQuota>
override this.GetUsagesSlotAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.CsmUsageQuota>
Public Overridable Function GetUsagesSlotAsync (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