Freigeben über


CertificateOperations.GetCertificateAsync Methode

Definition

Achtung

This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.

Warnung: Dieser Vorgang ist veraltet und wird nach Februar 2024 entfernt. Verwenden Sie stattdessen die Azure KeyVault-Erweiterung . Ruft die angegebene Certificate ab.

[System.Obsolete("This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.", false)]
public System.Threading.Tasks.Task<Microsoft.Azure.Batch.Certificate> GetCertificateAsync (string thumbprintAlgorithm, string thumbprint, Microsoft.Azure.Batch.DetailLevel detailLevel = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.", false)>]
member this.GetCertificateAsync : string * string * Microsoft.Azure.Batch.DetailLevel * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Certificate>
Public Function GetCertificateAsync (thumbprintAlgorithm As String, thumbprint As String, Optional detailLevel As DetailLevel = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Certificate)

Parameter

thumbprintAlgorithm
String

Der Algorithmus, der zum Ableiten des thumbprint Parameters verwendet wird. Dies muss sha1 sein.

thumbprint
String

Der Fingerabdruck des abzurufenden Zertifikats.

detailLevel
DetailLevel

Ein DetailLevel , der zum Steuern verwendet wird, welche Eigenschaften aus dem Dienst abgerufen werden.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Eine Auflistung von BatchClientBehavior Instanzen, die nach und detailLevelauf die CustomBehaviors Batch-Dienstanforderung angewendet werden.

cancellationToken
CancellationToken

Ein CancellationToken zum Steuern der Lebensdauer des asynchronen Vorgangs.

Gibt zurück

Eine Certificate , die Informationen zum angegebenen Zertifikat im Azure Batch-Konto enthält.

Attribute

Hinweise

Der Vorgang zum Abrufen von Zertifikaten wird asynchron ausgeführt.

Gilt für: