ApiManagementServiceResource.GetQuotaByPeriodKey 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.
Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}
- Operation Id: QuotaByPeriodKeys_Get
- Default Api Version: 2021-08-01
public virtual Azure.Response<Azure.ResourceManager.ApiManagement.Models.QuotaCounterContract> GetQuotaByPeriodKey (string quotaCounterKey, string quotaPeriodKey, System.Threading.CancellationToken cancellationToken = default);
abstract member GetQuotaByPeriodKey : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApiManagement.Models.QuotaCounterContract>
override this.GetQuotaByPeriodKey : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApiManagement.Models.QuotaCounterContract>
Public Overridable Function GetQuotaByPeriodKey (quotaCounterKey As String, quotaPeriodKey As String, Optional cancellationToken As CancellationToken = Nothing) As Response(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.
- quotaPeriodKey
- String
Quota period key identifier.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
quotaCounterKey
or quotaPeriodKey
is an empty string, and was expected to be non-empty.
quotaCounterKey
or quotaPeriodKey
is null.
Applies to
Azure SDK for .NET
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk