CertificateClient.GetPropertiesOfCertificateVersionsAsync Method

Definition

Lists the properties of all enabled and disabled versions of the specified certificate in the specified vault. You can use the returned Name in subsequent calls to GetCertificateVersion(String, String, CancellationToken). This operation requires the certificates/list permission.

public virtual Azure.AsyncPageable<Azure.Security.KeyVault.Certificates.CertificateProperties> GetPropertiesOfCertificateVersionsAsync (string certificateName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPropertiesOfCertificateVersionsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Security.KeyVault.Certificates.CertificateProperties>
override this.GetPropertiesOfCertificateVersionsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Security.KeyVault.Certificates.CertificateProperties>
Public Overridable Function GetPropertiesOfCertificateVersionsAsync (certificateName As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CertificateProperties)

Parameters

certificateName
String

The name of the certificate whose versions should be retrieved.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

An enumerable collection of the certificate's versions.

Exceptions

certificateName is empty.

certificateName is null.

Applies to