Skip to main content

secret_values

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

Overview

Namesecret_values
TypeResource
Idazure.service_fabric_mesh.secret_values

Fields

NameDatatypeDescription
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
secretResourceNametextfield from the properties object
secretValueResourceNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
valuetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, secretResourceName, secretValueResourceName, subscriptionIdGet the information about the specified named secret value resources. The information does not include the actual value of the secret.
listSELECTresourceGroupName, secretResourceName, subscriptionIdGets information about all secret value resources of the specified secret resource. The information includes the names of the secret value resources, but not the actual values.
createINSERTresourceGroupName, secretResourceName, secretValueResourceName, subscriptionId, data__propertiesCreates a new value of the specified secret resource. The name of the value is typically the version identifier. Once created the value cannot be changed.
deleteDELETEresourceGroupName, secretResourceName, secretValueResourceName, subscriptionIdDeletes the secret value resource identified by the name. The name of the resource is typically the version associated with that value. Deletion will fail if the specified value is in use.

SELECT examples

Gets information about all secret value resources of the specified secret resource. The information includes the names of the secret value resources, but not the actual values.

SELECT
location,
provisioning_state,
resourceGroupName,
secretResourceName,
secretValueResourceName,
subscriptionId,
tags,
value
FROM azure.service_fabric_mesh.vw_secret_values
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND secretResourceName = '{{ secretResourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.service_fabric_mesh.secret_values (
resourceGroupName,
secretResourceName,
secretValueResourceName,
subscriptionId,
data__properties,
tags,
location,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ secretResourceName }}',
'{{ secretValueResourceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

DELETE example

Deletes the specified secret_values resource.

/*+ delete */
DELETE FROM azure.service_fabric_mesh.secret_values
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND secretResourceName = '{{ secretResourceName }}'
AND secretValueResourceName = '{{ secretValueResourceName }}'
AND subscriptionId = '{{ subscriptionId }}';