Share via


KeyClient.GetPropertiesOfKeyVersions(String, CancellationToken) Method

Definition

Lists the properties of all enabled and disabled versions of the specified key. You can use the returned Name and Version in subsequent calls to GetKey(String, String, CancellationToken).

public virtual Azure.Pageable<Azure.Security.KeyVault.Keys.KeyProperties> GetPropertiesOfKeyVersions (string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPropertiesOfKeyVersions : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.Security.KeyVault.Keys.KeyProperties>
override this.GetPropertiesOfKeyVersions : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.Security.KeyVault.Keys.KeyProperties>
Public Overridable Function GetPropertiesOfKeyVersions (name As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of KeyProperties)

Parameters

name
String

The name of the key.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

Exceptions

name is an empty string.

name is null.

The server returned an error. See Message for details returned from the server.

Remarks

The full key identifier, attributes, and tags are provided in the response. This operation requires the keys/list permission.

Applies to