次の方法で共有


QuotaByCounterKeys interface

QuotaByCounterKeys を表すインターフェイス。

メソッド

listByService(string, string, string, QuotaByCounterKeysListByServiceOptionalParams)

指定したサービス インスタンスのポリシーで構成されたカウンター キーに関連付けられている現在のクォータ カウンター期間のコレクションを一覧表示します。 API では、ページングはまだサポートされていません。

update(string, string, string, QuotaCounterValueUpdateContract, QuotaByCounterKeysUpdateOptionalParams)

既存のクォータ カウンター キーで指定されたすべてのクォータ カウンター値を、指定したサービス インスタンスの値に更新します。 これは、クォータ カウンター値のリセットに使用する必要があります。

メソッドの詳細

listByService(string, string, string, QuotaByCounterKeysListByServiceOptionalParams)

指定したサービス インスタンスのポリシーで構成されたカウンター キーに関連付けられている現在のクォータ カウンター期間のコレクションを一覧表示します。 API では、ページングはまだサポートされていません。

function listByService(resourceGroupName: string, serviceName: string, quotaCounterKey: string, options?: QuotaByCounterKeysListByServiceOptionalParams): Promise<QuotaCounterCollection>

パラメーター

resourceGroupName

string

リソース グループの名前。 名前の大文字と小文字は区別されます。

serviceName

string

API Management サービスの名前。

quotaCounterKey

string

クォータ カウンター キー識別子。これは、キーごとのクォータ ポリシーのカウンター キー属性で定義された式の結果です。たとえば、ポリシーで counter-key="boo" を指定すると、"boo" カウンター キーでアクセスできます。 ただし、counter-key="@("b"+"a")" として定義されている場合は、"ba" キーでアクセスできます

options
QuotaByCounterKeysListByServiceOptionalParams

options パラメーター。

戻り値

update(string, string, string, QuotaCounterValueUpdateContract, QuotaByCounterKeysUpdateOptionalParams)

既存のクォータ カウンター キーで指定されたすべてのクォータ カウンター値を、指定したサービス インスタンスの値に更新します。 これは、クォータ カウンター値のリセットに使用する必要があります。

function update(resourceGroupName: string, serviceName: string, quotaCounterKey: string, parameters: QuotaCounterValueUpdateContract, options?: QuotaByCounterKeysUpdateOptionalParams): Promise<QuotaCounterCollection>

パラメーター

resourceGroupName

string

リソース グループの名前。 名前の大文字と小文字は区別されます。

serviceName

string

API Management サービスの名前。

quotaCounterKey

string

クォータ カウンター キー識別子。これは、キーごとのクォータ ポリシーのカウンター キー属性で定義された式の結果です。たとえば、ポリシーで counter-key="boo" を指定すると、"boo" カウンター キーでアクセスできます。 ただし、counter-key="@("b"+"a")" として定義されている場合は、"ba" キーでアクセスできます

parameters
QuotaCounterValueUpdateContract

すべてのクォータ カウンター期間に適用されるクォータ カウンターの値。

options
QuotaByCounterKeysUpdateOptionalParams

options パラメーター。

戻り値