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

SearchExtensions.UsageBySubscriptionSkuAsync 方法

定义

获取给定订阅中搜索 SKU 的配额使用情况。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName}
  • 操作 IdUsageBySubscriptionSku
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Search.Models.QuotaUsageResult>> UsageBySubscriptionSkuAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string skuName, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member UsageBySubscriptionSkuAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Search.Models.QuotaUsageResult>>
<Extension()>
Public Function UsageBySubscriptionSkuAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, skuName As String, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of QuotaUsageResult))

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

location
AzureLocation

Microsoft Azure 地理区域的唯一位置名称。

skuName
String

Azure 认知搜索支持的唯一搜索服务 SKU 名称。

searchManagementRequestOptions
SearchManagementRequestOptions

参数组。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

skuName 是一个空字符串,预期为非空。

skuName 为 null。

适用于