Skip to main content

deleted_certificates

Creates, updates, deletes, gets or lists a deleted_certificates resource.

Overview

Namedeleted_certificates
TypeResource
Idazure.key_vault_certificates.deleted_certificates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe certificate id.
attributesobjectThe certificate attributes.
cerstring (byte)CER contents of x509 certificate.
contentTypestringThe content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12'.
deletedDatestring (date-time)The time when the certificate was deleted, in UTC.
kidstringThe key id.
policyobjectThe management policy.
preserveCertOrderbooleanSpecifies whether the certificate chain preserves its original order. The default value is false, which sets the leaf certificate at index 0.
recoveryIdstringThe url of the recovery object, used to identify and recover the deleted certificate.
scheduledPurgeDatestring (date-time)The time when the certificate is scheduled to be purged, in UTC.
sidstringThe secret id.
tagsobjectApplication specific metadata in the form of key-value pairs.
x5tstring (byte)Thumbprint of the certificate.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_deleted_certificateselectcertificate_name, vault_nameRetrieves information about the specified deleted certificate. The GetDeletedCertificate operation retrieves the deleted certificate information plus its attributes, such as retention interval, scheduled permanent deletion and the current deletion recovery level. This operation requires the certificates/get permission.
get_deleted_certificatesselectvault_namemaxresults, includePendingLists the deleted certificates in the specified vault currently available for recovery. The GetDeletedCertificates operation retrieves the certificates in the current vault which are in a deleted state and ready for recovery or purging. This operation includes deletion-specific information. This operation requires the certificates/get/list permission. This operation can only be enabled on soft-delete enabled vaults.
purge_deleted_certificatedeletecertificate_name, vault_namePermanently deletes the specified deleted certificate. The PurgeDeletedCertificate operation performs an irreversible deletion of the specified certificate, without possibility for recovery. The operation is not available if the recovery level does not specify 'Purgeable'. This operation requires the certificate/purge permission.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
certificate_namestringThe name of the certificate. Required.
vault_namestringKey vault name. (default: )
includePendingbooleanSpecifies whether to include certificates which are not completely provisioned. Default value is None.
maxresultsintegerMaximum number of results to return in a page. If not specified the service will return up to 25 results. Default value is None.

SELECT examples

Retrieves information about the specified deleted certificate. The GetDeletedCertificate operation retrieves the deleted certificate information plus its attributes, such as retention interval, scheduled permanent deletion and the current deletion recovery level. This operation requires the certificates/get permission.

SELECT
id,
attributes,
cer,
contentType,
deletedDate,
kid,
policy,
preserveCertOrder,
recoveryId,
scheduledPurgeDate,
sid,
tags,
x5t
FROM azure.key_vault_certificates.deleted_certificates
WHERE certificate_name = '{{ certificate_name }}' -- required
AND vault_name = '{{ vault_name }}' -- required
;

DELETE examples

Permanently deletes the specified deleted certificate. The PurgeDeletedCertificate operation performs an irreversible deletion of the specified certificate, without possibility for recovery. The operation is not available if the recovery level does not specify 'Purgeable'. This operation requires the certificate/purge permission.

DELETE FROM azure.key_vault_certificates.deleted_certificates
WHERE certificate_name = '{{ certificate_name }}' --required
AND vault_name = '{{ vault_name }}' --required
;