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: 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET