{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-key-vault/json-schema/microsoft-azure-key-vault-deleted-key-list-result-schema.json",
  "title": "DeletedKeyListResult",
  "description": "A list of keys that have been deleted in this vault.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-key-vault-deletedkeys-api-openapi.yml#/components/schemas/DeletedKeyListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "A response message containing a list of deleted keys in the key vault along with a link to the next page of deleted keys.",
      "items": {
        "$ref": "#/$defs/DeletedKeyItem"
      },
      "readOnly": true
    },
    "nextLink": {
      "type": "string",
      "description": "The URL to get the next set of deleted keys.",
      "readOnly": true
    }
  },
  "$defs": {
    "DeletedKeyItem": {
      "type": "object",
      "description": "The deleted key item containing the deleted key metadata and information about deletion.",
      "properties": {
        "kid": {
          "type": "string",
          "description": "Key identifier."
        },
        "attributes": {
          "$ref": "#/$defs/KeyAttributes",
          "description": "The key management attributes."
        },
        "tags": {
          "type": "object",
          "description": "Application specific metadata in the form of key-value pairs.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "managed": {
          "type": "boolean",
          "description": "True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true.",
          "readOnly": true
        },
        "recoveryId": {
          "type": "string",
          "description": "The url of the recovery object, used to identify and recover the deleted key."
        },
        "scheduledPurgeDate": {
          "type": "integer",
          "format": "unixtime",
          "description": "The time when the key is scheduled to be purged, in UTC",
          "readOnly": true
        },
        "deletedDate": {
          "type": "integer",
          "format": "unixtime",
          "description": "The time when the key was deleted, in UTC",
          "readOnly": true
        }
      }
    },
    "DeletionRecoveryLevel": {
      "type": "string",
      "description": "Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval.",
      "enum": [
        "Purgeable",
        "Recoverable+Purgeable",
        "Recoverable",
        "Recoverable+ProtectedSubscription",
        "CustomizedRecoverable+Purgeable",
        "CustomizedRecoverable",
        "CustomizedRecoverable+ProtectedSubscription"
      ],
      "x-ms-enum": {
        "name": "DeletionRecoveryLevel",
        "modelAsString": true,
        "values": [
          {
            "name": "Purgeable",
            "value": "Purgeable",
            "description": "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.)"
          },
          {
            "name": "RecoverablePurgeable",
            "value": "Recoverable+Purgeable",
            "description": "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"
          },
          {
            "name": "Recoverable",
            "value": "Recoverable",
            "description": "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"
          },
          {
            "name": "RecoverableProtectedSubscription",
            "value": "Recoverable+ProtectedSubscription",
            "description": "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"
          },
          {
            "name": "CustomizedRecoverablePurgeable",
            "value": "CustomizedRecoverable+Purgeable",
            "description": "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."
          },
          {
            "name": "CustomizedRecoverable",
            "value": "CustomizedRecoverable",
            "description": "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."
          },
          {
            "name": "CustomizedRecoverableProtectedSubscription",
            "value": "CustomizedRecoverable+ProtectedSubscription",
            "description": "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."
          }
        ]
      }
    },
    "ExternalKey": {
      "type": "object",
      "description": "External Key parameters.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The external key identifier. The valid id can only contain characters in the set [a-zA-Z0-9-]. Maximum length is 64 characters."
        }
      },
      "required": [
        "id"
      ]
    },
    "KeyAttestation": {
      "type": "object",
      "description": "The key attestation information.",
      "properties": {
        "certificatePemFile": {
          "type": "string",
          "format": "base64url",
          "description": "A base64url-encoded string containing certificates in PEM format, used for attestation validation."
        },
        "privateKeyAttestation": {
          "type": "string",
          "format": "base64url",
          "description": "The attestation blob bytes encoded as base64url string corresponding to a private key."
        },
        "publicKeyAttestation": {
          "type": "string",
          "format": "base64url",
          "description": "The attestation blob bytes encoded as base64url string corresponding to a public key in case of asymmetric key."
        },
        "version": {
          "type": "string",
          "description": "The version of the attestation."
        }
      }
    },
    "KeyAttributes": {
      "type": "object",
      "description": "The attributes of a key managed by the key vault service.",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Determines whether the object is enabled."
        },
        "nbf": {
          "type": "integer",
          "format": "unixtime",
          "description": "Not before date in UTC.",
          "x-ms-client-name": "notBefore"
        },
        "exp": {
          "type": "integer",
          "format": "unixtime",
          "description": "Expiry date in UTC.",
          "x-ms-client-name": "expires"
        },
        "created": {
          "type": "integer",
          "format": "unixtime",
          "description": "Creation time in UTC.",
          "readOnly": true
        },
        "updated": {
          "type": "integer",
          "format": "unixtime",
          "description": "Last updated time in UTC.",
          "readOnly": true
        },
        "recoverableDays": {
          "type": "integer",
          "format": "int32",
          "description": "softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0.",
          "readOnly": true
        },
        "recoveryLevel": {
          "$ref": "#/$defs/DeletionRecoveryLevel",
          "description": "Reflects the deletion recovery level currently in effect for keys in the current vault. If it contains 'Purgeable' the key can be permanently deleted by a privileged user; otherwise, only the system can purge the key, at the end of the retention interval.",
          "readOnly": true
        },
        "exportable": {
          "type": "boolean",
          "description": "Indicates if the private key can be exported. Release policy must be provided when creating the first version of an exportable key."
        },
        "hsmPlatform": {
          "type": "string",
          "description": "The underlying HSM Platform.",
          "readOnly": true
        },
        "attestation": {
          "$ref": "#/$defs/KeyAttestation",
          "description": "The key or key version attestation information.",
          "readOnly": true
        },
        "external_key": {
          "$ref": "#/$defs/ExternalKey",
          "description": "The external key information.",
          "x-ms-client-name": "externalKey"
        },
        "key_size": {
          "type": "integer",
          "format": "int32",
          "description": "The optional key size in bits for symmetric keys. For example: 128, 192, or 256 for AES keys.",
          "readOnly": true,
          "x-ms-client-name": "keySize"
        }
      }
    }
  }
}