共用方式為


SecretClient.GetPropertiesOfSecretsAsync(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 GetSecretAsync(String, String, CancellationToken).

public virtual Azure.AsyncPageable<Azure.Security.KeyVault.Secrets.SecretProperties> GetPropertiesOfSecretsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetPropertiesOfSecretsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Security.KeyVault.Secrets.SecretProperties>
override this.GetPropertiesOfSecretsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Security.KeyVault.Secrets.SecretProperties>
Public Overridable Function GetPropertiesOfSecretsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(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