Skip to main content

quota_by_period_keys

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

Overview

Namequota_by_period_keys
TypeResource
Idazure.api_management.quota_by_period_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
getSELECTquotaCounterKey, quotaPeriodKey, resourceGroupName, serviceName, subscriptionIdGets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance.
updateUPDATEquotaCounterKey, quotaPeriodKey, resourceGroupName, serviceName, subscriptionIdUpdates an existing quota counter value in the specified service instance.

SELECT examples

Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance.

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

UPDATE example

Updates a quota_by_period_keys resource.

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