Skip to main content

secret_versions

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

Overview

Namesecret_versions
TypeResource
Idazure.key_vault_secrets.secret_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringSecret identifier.
attributesobjectThe secret management attributes.
contentTypestringType of the secret value such as a password.
managedbooleanTrue if the secret's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true.
tagsobjectApplication specific metadata in the form of key-value pairs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_secret_versionsselectsecret_name, vault_namemaxresultsList all versions of the specified secret. The full secret identifier and attributes are provided in the response. No values are returned for the secrets. This operations requires the secrets/list 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
secret_namestringThe name of the secret. Required.
vault_namestringKey vault name. (default: )
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

List all versions of the specified secret. The full secret identifier and attributes are provided in the response. No values are returned for the secrets. This operations requires the secrets/list permission.

SELECT
id,
attributes,
contentType,
managed,
tags
FROM azure.key_vault_secrets.secret_versions
WHERE secret_name = '{{ secret_name }}' -- required
AND vault_name = '{{ vault_name }}' -- required
AND maxresults = '{{ maxresults }}'
;