ApiManagementServiceResource.GetQuotaByCounterKeysAsync 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.
Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}
- Operation Id: QuotaByCounterKeys_ListByService
- Default Api Version: 2022-08-01
public virtual Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.QuotaCounterContract> GetQuotaByCounterKeysAsync (string quotaCounterKey, System.Threading.CancellationToken cancellationToken = default);
abstract member GetQuotaByCounterKeysAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.QuotaCounterContract>
override this.GetQuotaByCounterKeysAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.QuotaCounterContract>
Public Overridable Function GetQuotaByCounterKeysAsync (quotaCounterKey As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of QuotaCounterContract)
Parameters
- quotaCounterKey
- String
Quota counter key identifier.This is the result of expression defined in counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in the policy, then it’s accessible by "boo" counter key. But if it’s defined as counter-key="@("b"+"a")" then it will be accessible by "ba" key.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
An async collection of QuotaCounterContract that may take multiple service requests to iterate over.
Exceptions
quotaCounterKey
is an empty string, and was expected to be non-empty.
quotaCounterKey
is null.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for