IBatchAccountOperations.RegenerateKeyWithHttpMessagesAsync Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Batch hesabı için belirtilen hesap anahtarını yeniden oluşturur.
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Batch.Models.BatchAccountKeys>> RegenerateKeyWithHttpMessagesAsync (string resourceGroupName, string accountName, Microsoft.Azure.Management.Batch.Models.AccountKeyType keyName, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateKeyWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.Batch.Models.AccountKeyType * 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.BatchAccountKeys>>
Public Function RegenerateKeyWithHttpMessagesAsync (resourceGroupName As String, accountName As String, keyName As AccountKeyType, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of BatchAccountKeys))
Parametreler
- resourceGroupName
- String
Batch hesabını içeren kaynak grubunun adı.
- accountName
- String
Batch hesabının adı.
- keyName
- AccountKeyType
Yeniden oluşturulacak hesap anahtarının türü. Olası değerler şunlardır: 'Birincil', 'İkincil'
- 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
Açıklamalar
Bu işlem yalnızca 'SharedKey' içeren allowedAuthenticationModes içeren Batch hesapları için geçerlidir. Batch hesabı allowedAuthenticationMode içinde 'SharedKey' içermiyorsa, istemciler kimlik doğrulaması için paylaşılan anahtarları kullanamaz ve bunun yerine başka bir allowedAuthenticationModes kullanmalıdır. Bu durumda anahtarları yeniden oluşturma işlemi başarısız olur.
Şunlara uygulanır
Azure SDK for .NET