Skip to main content

mesh_secret

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

Overview

Namemesh_secret
TypeResource
Idazure.service_fabric_dataplane.mesh_secret

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
contentTypestring
descriptionstring
kindstring
statusstringStatus of the resource. Possible values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
statusDetailsstringGives additional information about the current status of the secret.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsecret_resource_name, endpointGets the Secret resource with the given name. Gets the information about the Secret resource with the given name. The information include the description and other properties of the Secret.
listselectendpointLists all the secret resources. Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret.
create_or_updateinsertsecret_resource_name, endpoint, properties, nameCreates or updates a Secret resource. Creates a Secret resource with the specified name, description and properties. If Secret resource with the same name exists, then it is updated with the specified description and properties. Once created, the kind and contentType of a secret resource cannot be updated.
create_or_updatereplacesecret_resource_name, endpoint, properties, nameCreates or updates a Secret resource. Creates a Secret resource with the specified name, description and properties. If Secret resource with the same name exists, then it is updated with the specified description and properties. Once created, the kind and contentType of a secret resource cannot be updated.
deletedeletesecret_resource_name, endpointDeletes the Secret resource. Deletes the specified Secret resource and all of its named values.

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.

SELECT examples

Gets the Secret resource with the given name. Gets the information about the Secret resource with the given name. The information include the description and other properties of the Secret.

SELECT
name,
contentType,
description,
kind,
status,
statusDetails
FROM azure.service_fabric_dataplane.mesh_secret
WHERE secret_resource_name = '{{ secret_resource_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Creates or updates a Secret resource. Creates a Secret resource with the specified name, description and properties. If Secret resource with the same name exists, then it is updated with the specified description and properties. Once created, the kind and contentType of a secret resource cannot be updated.

INSERT INTO azure.service_fabric_dataplane.mesh_secret (
properties,
name,
secret_resource_name,
endpoint
)
SELECT
'{{ properties }}' /* required */,
'{{ name }}' /* required */,
'{{ secret_resource_name }}',
'{{ endpoint }}'
RETURNING
name,
properties
;

REPLACE examples

Creates or updates a Secret resource. Creates a Secret resource with the specified name, description and properties. If Secret resource with the same name exists, then it is updated with the specified description and properties. Once created, the kind and contentType of a secret resource cannot be updated.

REPLACE azure.service_fabric_dataplane.mesh_secret
SET
properties = '{{ properties }}',
name = '{{ name }}'
WHERE
secret_resource_name = '{{ secret_resource_name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND properties = '{{ properties }}' --required
AND name = '{{ name }}' --required
RETURNING
name,
properties;

DELETE examples

Deletes the Secret resource. Deletes the specified Secret resource and all of its named values.

DELETE FROM azure.service_fabric_dataplane.mesh_secret
WHERE secret_resource_name = '{{ secret_resource_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;