quota_by_counter_keys
Creates, updates, deletes, gets or lists a quota_by_counter_keys
resource.
Overview
Name | quota_by_counter_keys |
Type | Resource |
Id | azure.api_management.quota_by_counter_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 |
---|---|---|---|
list_by_service | SELECT | quotaCounterKey, resourceGroupName, serviceName, subscriptionId | 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. |
update | UPDATE | quotaCounterKey, resourceGroupName, serviceName, subscriptionId | Updates 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 }}';