KeyVaultClientExtensions.GetCertificateAsync Method

Definition

Overloads

GetCertificateAsync(IKeyVaultClient, String, CancellationToken)

Gets a certificate.

GetCertificateAsync(IKeyVaultClient, String, String, CancellationToken)

Gets a certificate.

GetCertificateAsync(IKeyVaultClient, String, String, String, CancellationToken)

Gets information about a specified certificate. Authorization: requires the certificates/get permission.

GetCertificateAsync(IKeyVaultClient, String, CancellationToken)

Gets a certificate.

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle> GetCertificateAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string certificateIdentifier, System.Threading.CancellationToken cancellationToken = null);
static member GetCertificateAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle>

Parameters

operations
IKeyVaultClient
certificateIdentifier
String

The URL for the certificate.

cancellationToken
CancellationToken

Optional cancellation token

Returns

Task<CertificateBundle>

The retrieved certificate

Applies to

Product Introduced

GetCertificateAsync(IKeyVaultClient, String, String, CancellationToken)

Gets a certificate.

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle> GetCertificateAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string certificateName, System.Threading.CancellationToken cancellationToken = null);
static member GetCertificateAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle>

Parameters

operations
IKeyVaultClient
vaultBaseUrl
String

The URL for the vault containing the certificate.

certificateName
String

The name of the certificate in the given vault.

cancellationToken
CancellationToken

Optional cancellation token

Returns

Task<CertificateBundle>

The retrieved certificate

Applies to

Product Introduced

GetCertificateAsync(IKeyVaultClient, String, String, String, CancellationToken)

Gets information about a specified certificate. Authorization: requires the certificates/get permission.

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle> GetCertificateAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string certificateName, string certificateVersion, System.Threading.CancellationToken cancellationToken = null);
static member GetCertificateAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificateBundle>

Parameters

operations
IKeyVaultClient

The operations group for this extension method.

vaultBaseUrl
String

The vault name, for example https://myvault.vault.azure.net.

certificateName
String

The name of the certificate in the given vault.

certificateVersion
String

The version of the certificate.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<CertificateBundle>

Applies to

Product Introduced