Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QuotaByCounterKeysImpl

Package version

Class containing QuotaByCounterKeys operations.

Hierarchy

  • QuotaByCounterKeysImpl

Implements

Index

Constructors

Methods

Constructors

constructor

Methods

listByService

  • 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.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • serviceName: string

      The name of the API Management service.

    • 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

    • Optional options: QuotaByCounterKeysListByServiceOptionalParams

      The options parameters.

    Returns Promise<QuotaByCounterKeysListByServiceResponse>

update

  • 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.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • serviceName: string

      The name of the API Management service.

    • 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

    • parameters: QuotaCounterValueUpdateContract

      The value of the quota counter to be applied to all quota counter periods.

    • Optional options: QuotaByCounterKeysUpdateOptionalParams

      The options parameters.

    Returns Promise<QuotaByCounterKeysUpdateResponse>

Generated using TypeDoc