次の方法で共有


IQuotaOperations.CreateOrUpdateWithHttpMessagesAsync メソッド

定義

リソースのクォータ (サービス制限) を作成または更新して、要求された値に更新します。 手順:

  1. Get 要求を実行して、特定のリソースのクォータ情報を取得します。

  2. クォータを増やすには、応答の limit フィールドを Get request から新しい値に更新します。

  3. クォータを更新するには、クォータ要求 API に JSON を送信します。 クォータの作成要求は、次のように作成できます。 PUT 操作を使用して、クォータを更新できます。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<object>> CreateOrUpdateWithHttpMessagesAsync(string subscriptionId, string providerId, string location, string resourceName, Microsoft.Azure.Management.Reservations.Models.CurrentQuotaLimitBase createQuotaRequest, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * string * string * Microsoft.Azure.Management.Reservations.Models.CurrentQuotaLimitBase * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<obj>>
Public Function CreateOrUpdateWithHttpMessagesAsync (subscriptionId As String, providerId As String, location As String, resourceName As String, createQuotaRequest As CurrentQuotaLimitBase, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Object))

パラメーター

subscriptionId
String

Azure サブスクリプション ID。

providerId
String

Azure リソース プロバイダー ID。

location
String

Azure リージョン。

resourceName
String

リソース プロバイダーのリソース名 (Microsoft.MachineLearningServices の場合は Microsoft.Compute、Sku、TotalLowPriorityCores の SKU 名など)

createQuotaRequest
CurrentQuotaLimitBase

クォータ要求ペイロード。

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

例外

操作が無効な状態コードを返したときにスローされます

応答を逆シリアル化できない場合にスローされます

必須パラメーターが null の場合にスローされます

適用対象