Skip to main content

quota_by_counter_keys

Creates, updates, deletes, gets or lists a quota_by_counter_keys resource.

Overview

Namequota_by_counter_keys
TypeResource
Idazure.api_management.quota_by_counter_keys

Fields

NameDatatypeDescription
counterKeystringThe Key value of the Counter. Must not be empty.
periodEndTimestringThe date of the end of Counter Period. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
periodKeystringIdentifier of the Period for which the counter was collected. Must not be empty.
periodStartTimestringThe date of the start of Counter Period. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
valueobjectQuota counter value details.

Methods

NameAccessible byRequired ParamsDescription
list_by_serviceSELECTquotaCounterKey, resourceGroupName, serviceName, subscriptionIdLists 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.
updateUPDATEquotaCounterKey, resourceGroupName, serviceName, subscriptionIdUpdates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values.

SELECT examples

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.

SELECT
counterKey,
periodEndTime,
periodKey,
periodStartTime,
value
FROM azure.api_management.quota_by_counter_keys
WHERE quotaCounterKey = '{{ quotaCounterKey }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

UPDATE example

Updates a quota_by_counter_keys resource.

/*+ update */
UPDATE azure.api_management.quota_by_counter_keys
SET
properties = '{{ properties }}'
WHERE
quotaCounterKey = '{{ quotaCounterKey }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';