次の方法で共有


IBatchAccountOperations.CreateWithHttpMessagesAsync メソッド

定義

指定したパラメーターを使用して、新しい Batch アカウントを作成します。 この API では既存のアカウントを更新できないため、代わりに Update Batch Account API で更新する必要があります。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Batch.Models.BatchAccount,Microsoft.Azure.Management.Batch.Models.BatchAccountCreateHeaders>> CreateWithHttpMessagesAsync (string resourceGroupName, string accountName, Microsoft.Azure.Management.Batch.Models.BatchAccountCreateParameters parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.Batch.Models.BatchAccountCreateParameters * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Batch.Models.BatchAccount, Microsoft.Azure.Management.Batch.Models.BatchAccountCreateHeaders>>
Public Function CreateWithHttpMessagesAsync (resourceGroupName As String, accountName As String, parameters As BatchAccountCreateParameters, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of BatchAccount, BatchAccountCreateHeaders))

パラメーター

resourceGroupName
String

Batch アカウントを含むリソース グループの名前。

accountName
String

リージョン内で一意である必要がある Batch アカウントの名前。 バッチ アカウント名の長さは 3 ~ 24 文字で、数字と小文字のみを使用する必要があります。 この名前は、アカウントが作成されたリージョンの Batch サービスにアクセスするために使用される DNS 名の一部として使用されます。 たとえば、 http://accountname.region.batch.azure.com/と指定します。

parameters
BatchAccountCreateParameters

アカウント作成の追加パラメーター。

customHeaders
Dictionary<String,List<String>>

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

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

例外

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

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

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

適用対象