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

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

Applies to