MockableSearchSubscriptionResource.GetUsagesBySubscriptionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. : UsagesOperationGroup_ListBySubscription.
- Default Api Version. : 2026-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 name of the Azure region.
- searchManagementRequestOptions
- SearchManagementRequestOptions
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of QuotaUsageResult that may take multiple service requests to iterate over.