Share via


KeyVaultClientExtensions.GetCertificatePolicyAsync Method

Definition

Lists the policy for a certificate.

public static System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificatePolicy> GetCertificatePolicyAsync (this Microsoft.Azure.KeyVault.IKeyVaultClient operations, string vaultBaseUrl, string certificateName, System.Threading.CancellationToken cancellationToken = default);
static member GetCertificatePolicyAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.CertificatePolicy>
<Extension()>
Public Function GetCertificatePolicyAsync (operations As IKeyVaultClient, vaultBaseUrl As String, certificateName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CertificatePolicy)

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 a given key vault.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

The GetCertificatePolicy operation returns the specified certificate policy resources in the specified key vault. This operation requires the certificates/get permission.

Applies to