Freigeben über


SearchExtensions.GetUsagesBySubscriptionAsync Methode

Definition

Ruft eine Liste aller Suchkontingentnutzungen im angegebenen Abonnement ab.

  • Anforderungspfad/Abonnements/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages
  • Vorgangs-IdUsages_ListBySubscription
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)

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance die -Methode ausgeführt wird.

location
AzureLocation

Der eindeutige Standortname für eine geografische Microsoft Azure-Region.

searchManagementRequestOptions
SearchManagementRequestOptions

Parametergruppe.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Eine asynchrone Auflistung von QuotaUsageResult , die mehrere Dienstanforderungen durchlaufen kann.

Gilt für: