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

The following fields are returned by SELECT queries:

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectThis type describes properties of a secret value resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, secretResourceName, secretValueResourceNameapi-versionGet the information about the specified named secret value resources. The information does not include the actual value of the secret.
listselectsubscriptionId, resourceGroupName, secretResourceNameapi-versionGets 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.
createinsertsubscriptionId, resourceGroupName, secretResourceName, secretValueResourceName, data__propertiesapi-versionCreates 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.
deletedeletesubscriptionId, resourceGroupName, secretResourceName, secretValueResourceNameapi-versionDeletes 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.

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
resourceGroupNamestringAzure resource group name
secretResourceNamestringThe name of the secret resource.
secretValueResourceNamestringThe name of the secret resource value which is typically the version identifier for the value.
subscriptionIdstringThe customer subscription identifier
api-versionstringThe version of the API. This parameter is required and its value must be 2018-09-01-preview.

SELECT examples

Get the information about the specified named secret value resources. The information does not include the actual value of the secret.

SELECT
location,
properties,
tags
FROM azure.service_fabric_mesh.secret_values
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND secretResourceName = '{{ secretResourceName }}' -- required
AND secretValueResourceName = '{{ secretValueResourceName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Creates 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.

INSERT INTO azure.service_fabric_mesh.secret_values (
data__tags,
data__location,
data__properties,
subscriptionId,
resourceGroupName,
secretResourceName,
secretValueResourceName,
api-version
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ secretResourceName }}',
'{{ secretValueResourceName }}',
'{{ api-version }}'
RETURNING
location,
properties,
tags
;

DELETE examples

Deletes 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.

DELETE FROM azure.service_fabric_mesh.secret_values
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND secretResourceName = '{{ secretResourceName }}' --required
AND secretValueResourceName = '{{ secretValueResourceName }}' --required
AND api-version = '{{ api-version }}'
;