你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WebSiteSlotResource.GetUsagesSlot(String, CancellationToken) 方法

定义

说明 获取应用 (或部署槽的配额使用情况信息(如果) 指定)。

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/usages
  • 操作IdWebApps_ListUsagesSlot
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)

参数

filter
String

使用 OData 语法) 仅返回筛选器 (中指定的信息。 例如:$filter= (name.value eq 'Metric1' 或 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|分钟|Day]'。

cancellationToken
CancellationToken

要使用的取消标记。

返回

可能需要多个服务请求来循环访问的 的 CsmUsageQuota 集合。

适用于