quota_by_period_keys
Creates, updates, deletes, gets or lists a quota_by_period_keys
resource.
Overview
Name | quota_by_period_keys |
Type | Resource |
Id | azure.api_management.quota_by_period_keys |
Fields
Name | Datatype | Description |
---|---|---|
counterKey | string | The Key value of the Counter. Must not be empty. |
periodEndTime | string | The 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. |
periodKey | string | Identifier of the Period for which the counter was collected. Must not be empty. |
periodStartTime | string | The 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. |
value | object | Quota counter value details. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | quotaCounterKey, quotaPeriodKey, resourceGroupName, serviceName, subscriptionId | Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance. |
update | UPDATE | quotaCounterKey, quotaPeriodKey, resourceGroupName, serviceName, subscriptionId | Updates 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 }}';