SecretClient.GetPropertiesOfSecrets(CancellationToken) Method

Definition

Lists the properties of all enabled and disabled secrets in the specified vault. You can use the returned Name in subsequent calls to GetSecret(String, String, CancellationToken).

public virtual Azure.Pageable<Azure.Security.KeyVault.Secrets.SecretProperties> GetPropertiesOfSecrets (System.Threading.CancellationToken cancellationToken = default);
abstract member GetPropertiesOfSecrets : System.Threading.CancellationToken -> Azure.Pageable<Azure.Security.KeyVault.Secrets.SecretProperties>
override this.GetPropertiesOfSecrets : System.Threading.CancellationToken -> Azure.Pageable<Azure.Security.KeyVault.Secrets.SecretProperties>
Public Overridable Function GetPropertiesOfSecrets (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SecretProperties)

Parameters

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

Exceptions

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

Remarks

The Get Secrets operation is applicable to the entire vault. However, only the base secret identifier and its attributes are provided in the response. Individual secret versions are not listed in the response. This operation requires the secrets/list permission.

Applies to