Description | : The Get Deleted Secrets operation returns the secrets that have been deleted for a vault enabled for soft-delete. This operation requires the secrets/list permission. |
Reference | : Link ¶ |
⚶ Changes
{ "#id": "GetDeletedSecrets", "$parameters": [ { "#name": "api-version", "Description": { "new": "The API version to use for this operation.", "old": "Client API version." } } ], "$responses": { "200": { "$properties": [ { "#name": "value", "Description": { "new": "A response message containing a list of deleted secrets in the key vault along with a link to the next page of deleted secrets.", "old": "A response message containing a list of the deleted secrets in the vault along with a link to the next page of deleted secrets" }, "$items": { "$properties": { "@added_29f8f2273da4480da397d0a3e693e30c": { "#name": "id", "Description": "Secret identifier.", "Required": false, "Type": "string" }, "@added_ee2f4816b37c479696063aa9e28d236c": { "#name": "attributes", "Description": "The secret management attributes.", "Required": false, "Type": "object", "$properties": [ { "#name": "enabled", "Description": "Determines whether the object is enabled.", "Required": false, "Type": "boolean" }, { "#name": "nbf", "Description": "Not before date in UTC.", "Format": "unixtime", "Required": false, "Type": "integer" }, { "#name": "exp", "Description": "Expiry date in UTC.", "Format": "unixtime", "Required": false, "Type": "integer" }, { "#name": "created", "Description": "Creation time in UTC.", "Format": "unixtime", "Required": false, "Type": "integer" }, { "#name": "updated", "Description": "Last updated time in UTC.", "Format": "unixtime", "Required": false, "Type": "integer" }, { "#name": "recoverableDays", "Description": "softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0.", "Format": "int32", "Required": false, "Type": "integer" }, { "#name": "recoveryLevel", "Description": "Reflects the deletion recovery level currently in effect for secrets in the current vault. If it contains 'Purgeable', the secret can be permanently deleted by a privileged user; otherwise, only the system can purge the secret, at the end of the retention interval.", "Enum": [ [ "Purgeable", "Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.)" ], [ "Recoverable+Purgeable", "Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered" ], [ "Recoverable", "Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered" ], [ "Recoverable+ProtectedSubscription", "Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered" ], [ "CustomizedRecoverable+Purgeable", "Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7 <= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled." ], [ "CustomizedRecoverable", "Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7 <= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available." ], [ "CustomizedRecoverable+ProtectedSubscription", "Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7 <= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled." ] ], "Required": false, "Type": "string" } ] }, "@added_0d4638036add48a386717d9f38c6e36b": { "#name": "tags", "Description": "Application specific metadata in the form of key-value pairs.", "Required": false, "Type": "object" }, "@added_92add36f4ecf4c568242b199ad5b69b3": { "#name": "contentType", "Description": "Type of the secret value such as a password.", "Required": false, "Type": "string" }, "@added_c1b452837e5a4ac1895c58ccf585907e": { "#name": "managed", "Description": "True if the secret's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true.", "Required": false, "Type": "boolean" } } } } ] } } }
⚼ Request
GET:
/deletedsecrets
{
api-version:
string
,
maxresults:
integer
,
}
⚐ Response (200)
{
value:
[
]
,
{
,
id:
string
,
attributes:
{
,
enabled:
boolean
,
nbf:
integer
,
exp:
integer
,
created:
integer
,
updated:
integer
,
recoverableDays:
integer
,
recoveryLevel:
enum
,
}
tags:
object
,
contentType:
string
,
managed:
boolean
,
recoveryId:
string
,
scheduledPurgeDate:
integer
,
deletedDate:
integer
,
}
nextLink:
string
,
}
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
innererror:
string
,
}