Skip to main content

mesh_secret_value

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

Overview

Namemesh_secret_value
TypeResource
Idazure.service_fabric_dataplane.mesh_secret_value

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
valuestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsecret_resource_name, secret_value_resource_name, endpointGets the specified secret value resource. Get the information about the specified named secret value resources. The information does not include the actual value of the secret.
listselectsecret_resource_name, endpointList names of all values of the specified secret resource. 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.
deletedeletesecret_resource_name, secret_value_resource_name, endpointDeletes the specified value of the named secret resource. 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.
add_valueexecsecret_resource_name, secret_value_resource_name, endpoint, nameAdds the specified value as a new version of the specified secret resource. 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.
showexecsecret_resource_name, secret_value_resource_name, endpointLists the specified value of the secret resource. Lists the decrypted value of the specified named value of the secret resource. This is a privileged operation.

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
endpointstringThe service endpoint host (no scheme). (default: )
secret_resource_namestringThe name of the secret resource.
secret_value_resource_namestringThe name of the secret resource value which is typically the version identifier for the value.

SELECT examples

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

SELECT
name,
value
FROM azure.service_fabric_dataplane.mesh_secret_value
WHERE secret_resource_name = '{{ secret_resource_name }}' -- required
AND secret_value_resource_name = '{{ secret_value_resource_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

DELETE examples

Deletes the specified value of the named secret resource. 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_dataplane.mesh_secret_value
WHERE secret_resource_name = '{{ secret_resource_name }}' --required
AND secret_value_resource_name = '{{ secret_value_resource_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Adds the specified value as a new version of the specified secret resource. 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.

EXEC azure.service_fabric_dataplane.mesh_secret_value.add_value 
@secret_resource_name='{{ secret_resource_name }}' --required,
@secret_value_resource_name='{{ secret_value_resource_name }}' --required,
@endpoint='{{ endpoint }}' --required
@@json=
'{
"name": "{{ name }}",
"properties": "{{ properties }}"
}'
;