Skip to main content

key_versions

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

Overview

Namekey_versions
TypeResource
Idazure.key_vault_keys.key_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attributesobjectThe key management attributes.
kidstringKey identifier.
managedbooleanTrue if the key'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_key_versionsselectkey_name, vault_namemaxresultsRetrieves a list of individual key versions with the same key name. The full key identifier, attributes, and tags are provided in the response. This operation requires the keys/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
key_namestringThe name of the key. 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

Retrieves a list of individual key versions with the same key name. The full key identifier, attributes, and tags are provided in the response. This operation requires the keys/list permission.

SELECT
attributes,
kid,
managed,
tags
FROM azure.key_vault_keys.key_versions
WHERE key_name = '{{ key_name }}' -- required
AND vault_name = '{{ vault_name }}' -- required
AND maxresults = '{{ maxresults }}'
;