Udostępnij za pośrednictwem


CertificateClient.GetPropertiesOfCertificateVersions 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.Pageable<Azure.Security.KeyVault.Certificates.CertificateProperties> GetPropertiesOfCertificateVersions (string certificateName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPropertiesOfCertificateVersions : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.Security.KeyVault.Certificates.CertificateProperties>
override this.GetPropertiesOfCertificateVersions : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.Security.KeyVault.Certificates.CertificateProperties>
Public Overridable Function GetPropertiesOfCertificateVersions (certificateName As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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