Share via


MockableSearchSubscriptionResource.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 virtual Azure.AsyncPageable<Azure.ResourceManager.Search.Models.QuotaUsageResult> GetUsagesBySubscriptionAsync (Azure.Core.AzureLocation location, Azure.ResourceManager.Search.Models.SearchManagementRequestOptions searchManagementRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUsagesBySubscriptionAsync : Azure.Core.AzureLocation * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Search.Models.QuotaUsageResult>
override this.GetUsagesBySubscriptionAsync : Azure.Core.AzureLocation * Azure.ResourceManager.Search.Models.SearchManagementRequestOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Search.Models.QuotaUsageResult>
Public Overridable Function GetUsagesBySubscriptionAsync (location As AzureLocation, Optional searchManagementRequestOptions As SearchManagementRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of QuotaUsageResult)

Parameters

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.

Applies to