Skip to main content

secrets

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

Overview

Namesecrets
TypeResource
Idazure.key_vault.secrets

Fields

NameDatatypeDescription
idtextFully qualified identifier of the key vault resource.
nametextName of the key vault resource.
attributestextfield from the properties object
content_typetextfield from the properties object
locationtextAzure location of the key vault resource.
resourceGroupNametextfield from the properties object
secretNametextfield from the properties object
secret_uritextfield from the properties object
secret_uri_with_versiontextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextTags assigned to the key vault resource.
typetextResource type of the key vault resource.
valuetextfield from the properties object
vaultNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, secretName, subscriptionId, vaultNameGets the specified secret. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
listSELECTresourceGroupName, subscriptionId, vaultNameThe List operation gets information about the secrets in a vault. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
create_or_updateINSERTresourceGroupName, secretName, subscriptionId, vaultName, data__propertiesCreate or update a secret in a key vault in the specified subscription. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
updateUPDATEresourceGroupName, secretName, subscriptionId, vaultNameUpdate a secret in the specified subscription. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.

SELECT examples

The List operation gets information about the secrets in a vault. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.

SELECT
id,
name,
attributes,
content_type,
location,
resourceGroupName,
secretName,
secret_uri,
secret_uri_with_version,
subscriptionId,
tags,
type,
value,
vaultName
FROM azure.key_vault.vw_secrets
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';

INSERT example

Use the following StackQL query and manifest file to create a new secrets resource.

/*+ create */
INSERT INTO azure.key_vault.secrets (
resourceGroupName,
secretName,
subscriptionId,
vaultName,
data__properties,
tags,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ secretName }}',
'{{ subscriptionId }}',
'{{ vaultName }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a secrets resource.

/*+ update */
UPDATE azure.key_vault.secrets
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND secretName = '{{ secretName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vaultName = '{{ vaultName }}';