Skip to main content

secrets

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

Overview

Namesecrets
TypeResource
Idazure.service_fabric_mesh.secrets

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
content_typetextfield from the properties object
kindtextfield from the properties object
locationtextThe geo-location where the resource lives
resourceGroupNametextfield from the properties object
secretResourceNametextfield from the properties object
statustextfield from the properties object
status_detailstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, secretResourceName, subscriptionIdGets the information about the secret resource with the given name. The information include the description and other properties of the secret.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret.
list_by_subscriptionSELECTsubscriptionIdGets the information about all secret resources in a given resource group. The information include the description and other properties of the secret.
createINSERTresourceGroupName, secretResourceName, subscriptionId, data__propertiesCreates a secret resource with the specified name, description and properties. If a secret resource with the same name exists, then it is updated with the specified description and properties.
deleteDELETEresourceGroupName, secretResourceName, subscriptionIdDeletes the secret resource identified by the name.

SELECT examples

Gets the information about all secret resources in a given resource group. The information include the description and other properties of the secret.

SELECT
description,
content_type,
kind,
location,
resourceGroupName,
secretResourceName,
status,
status_details,
subscriptionId,
tags
FROM azure.service_fabric_mesh.vw_secrets
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified secrets resource.

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