SecretProperties Class

Definition

SecretProperties is the resource containing all the properties of the secret except its value.

public class SecretProperties
Inheritance
SecretProperties

Constructors

SecretProperties(String)

Initializes a new instance of the SecretProperties class.

SecretProperties(Uri)

Initializes a new instance of the SecretProperties class.

Properties

ContentType

Gets or sets the content type of the secret value such as "text/plain" for a password.

CreatedOn

Gets a DateTimeOffset indicating when the secret was created.

Enabled

Gets or sets a value indicating whether the secret is enabled and useable.

ExpiresOn

Gets or sets a DateTimeOffset indicating when the secret will expire and cannot be used.

Id

Gets the secret identifier.

KeyId

Gets the key identifier of a key backing a Key Vault certificate if this secret is backing a Key Vault certificate.

Managed

Gets a value indicating whether the secret's lifetime is managed by Key Vault. If this secret is backing a Key Vault certificate, the value will be true.

Name

Gets the name of the secret.

NotBefore

Gets or sets a DateTimeOffset indicating when the secret will be valid and can be used.

RecoverableDays

Gets the number of days a secret is retained before being deleted for a soft delete-enabled Key Vault.

RecoveryLevel

Gets the recovery level currently in effect for secrets in the Key Vault. If Purgeable, the secret can be permanently deleted by an authorized user; otherwise, only the service can purge the secrets at the end of the retention interval.

Tags

Gets a dictionary of tags with specific metadata about the secret.

UpdatedOn

Gets a DateTimeOffset indicating when the secret was updated.

VaultUri

Gets the Key Vault base Uri.

Version

Gets the version of the secret.

Applies to