Aracılığıyla paylaş


IBatchAccountOperations.BeginCreateWithHttpMessagesAsync Yöntem

Tanım

Belirtilen parametrelerle yeni bir Batch hesabı oluşturur. Mevcut hesaplar bu API ile güncelleştirilemez ve bunun yerine Batch Hesabını Güncelleştir API'siyle güncelleştirilmelidir.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Batch.Models.BatchAccount,Microsoft.Azure.Management.Batch.Models.BatchAccountCreateHeaders>> BeginCreateWithHttpMessagesAsync (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 BeginCreateWithHttpMessagesAsync : 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 BeginCreateWithHttpMessagesAsync (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))

Parametreler

resourceGroupName
String

Batch hesabını içeren kaynak grubunun adı.

accountName
String

Bölge içinde benzersiz olması gereken Batch hesabı için bir ad. Batch hesabı adlarının uzunluğu 3 ile 24 karakter arasında olmalı ve yalnızca sayı ve küçük harf kullanmalıdır. Bu ad, hesabın oluşturulduğu bölgedeki Batch hizmetine erişmek için kullanılan DNS adının bir parçası olarak kullanılır. Örneğin: http://accountname.region.batch.azure.com/.

parameters
BatchAccountCreateParameters

Hesap oluşturma için ek parametreler.

customHeaders
Dictionary<String,List<String>>

İsteğe eklenecek üst bilgiler.

cancellationToken
CancellationToken

İptal belirteci.

Döndürülenler

Özel durumlar

İşlem geçersiz bir durum kodu döndürdiğinde oluşturuldu

Yanıtın seri durumdan çıkarılamadığında oluşturulur

Gerekli bir parametre null olduğunda oluşturulur

Şunlara uygulanır