Skip to main content

keys_versions

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

Overview

Namekeys_versions
TypeResource
Idazure.key_vault.keys_versions

Fields

The following fields are returned by SELECT queries:

The retrieved key version.

NameDatatypeDescription
idstringFully qualified identifier of the key vault resource.
namestringName of the key vault resource.
locationstringAzure location of the key vault resource.
propertiesobjectThe properties of the key.
tagsobjectTags assigned to the key vault resource.
typestringResource type of the key vault resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, vaultName, keyName, keyVersionGets the specified version of the specified key in the specified key vault.
listselectsubscriptionId, resourceGroupName, vaultName, keyNameLists the versions of the specified key in the specified key vault.

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
keyNamestringThe name of the key versions to be retrieved.
keyVersionstringThe version of the key to be retrieved.
resourceGroupNamestringThe name of the resource group which contains the specified key vault.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
vaultNamestringThe name of the vault which contains the key versions to be retrieved.

SELECT examples

Gets the specified version of the specified key in the specified key vault.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.key_vault.keys_versions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND vaultName = '{{ vaultName }}' -- required
AND keyName = '{{ keyName }}' -- required
AND keyVersion = '{{ keyVersion }}' -- required
;