KeyVaultClientExtensions.GetCertificatePolicyAsync(IKeyVaultClient, String, String, CancellationToken) 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 = null);
static member GetCertificatePolicyAsync : Microsoft.Azure.KeyVault.IKeyVaultClient * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.KeyVault.Models.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

Task<CertificatePolicy>

Remarks

The GetCertificatePolicy operation returns the specified certificate policy

resources in the specified key vault

Applies to