IQuotaByPeriodKeysOperations.GetWithHttpMessagesAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
サービス インスタンス内の特定の期間のポリシーのカウンター キーに関連付けられているクォータ カウンターの値を取得します。 https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-product-with-rules#a-namepolicies-ato-configure-call-rate-limit-and-quota-policies
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ApiManagement.Models.QuotaCounterContract>> GetWithHttpMessagesAsync (string resourceGroupName, string serviceName, string quotaCounterKey, string quotaPeriodKey, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWithHttpMessagesAsync : string * string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ApiManagement.Models.QuotaCounterContract>>
Public Function GetWithHttpMessagesAsync (resourceGroupName As String, serviceName As String, quotaCounterKey As String, quotaPeriodKey As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of QuotaCounterContract))
パラメーター
- resourceGroupName
- String
リソース グループの名前。
- serviceName
- String
API Management サービスの名前。
- quotaCounterKey
- String
クォータ カウンター キー識別子。これは、キーごとのクォータ ポリシーのカウンター キー属性で定義された式の結果です。たとえば、ポリシーで counter-key="boo" を指定すると、"boo" カウンター キーでアクセスできます。 ただし、counter-key="@("b"+"a")" として定義されている場合は、"ba" キーでアクセスできます
- quotaPeriodKey
- String
クォータ期間キー識別子。
- customHeaders
- Dictionary<String,List<String>>
要求に追加されるヘッダー。
- cancellationToken
- CancellationToken
キャンセル トークン。
戻り値
例外
操作が無効な状態コードを返したときにスローされます
応答を逆シリアル化できない場合にスローされます
必須パラメーターが null の場合にスローされます
適用対象
Azure SDK for .NET