SearchExtensions.GetUsagesBySubscriptionAsync Method

Definition

Get a list of all Azure AI Search quota usages across the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages
  • Operation Id: Usages_ListBySubscription
  • Default Api Version: 2024-03-01-preview
public static Azure.AsyncPageable<Azure.ResourceManager.Search.Models.QuotaUsageResult> GetUsagesBySubscriptionAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member GetUsagesBySubscriptionAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Search.Models.QuotaUsageResult>
<Extension()>
Public Function GetUsagesBySubscriptionAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of QuotaUsageResult)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

location
AzureLocation

The unique location name for a Microsoft Azure geographic region.

searchManagementRequestOptions
SearchManagementRequestOptions

Parameter group.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of QuotaUsageResult that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to