Share via


CertificateOperations.GetCertificate Method

Definition

Caution

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

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

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

Parameters

thumbprintAlgorithm
String

The algorithm used to derive the thumbprint parameter. This must be sha1.

thumbprint
String

The thumbprint of the certificate to get.

detailLevel
DetailLevel

A DetailLevel used for controlling which properties are retrieved from the service.

additionalBehaviors
IEnumerable<BatchClientBehavior>

A collection of BatchClientBehavior instances that are applied to the Batch service request after the CustomBehaviors and detailLevel.

Returns

A Certificate containing information about the specified certificate in the Azure Batch account.

Attributes

Remarks

This is a blocking operation. For a non-blocking equivalent, see GetCertificateAsync(String, String, DetailLevel, IEnumerable<BatchClientBehavior>, CancellationToken).

Applies to