Skip to main content

secrets

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

Overview

Namesecrets
TypeResource
Idazure.cdn.secrets

Fields

NameDatatypeDescription
deployment_statustextfield from the properties object
parameterstextfield from the properties object
profileNametextfield from the properties object
profile_nametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
secretNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTprofileName, resourceGroupName, secretName, subscriptionIdGets an existing Secret within a profile.
list_by_profileSELECTprofileName, resourceGroupName, subscriptionIdLists existing AzureFrontDoor secrets.
createINSERTprofileName, resourceGroupName, secretName, subscriptionIdCreates a new Secret within the specified profile.
deleteDELETEprofileName, resourceGroupName, secretName, subscriptionIdDeletes an existing Secret within profile.

SELECT examples

Lists existing AzureFrontDoor secrets.

SELECT
deployment_status,
parameters,
profileName,
profile_name,
provisioning_state,
resourceGroupName,
secretName,
subscriptionId
FROM azure.cdn.vw_secrets
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.cdn.secrets (
profileName,
resourceGroupName,
secretName,
subscriptionId,
properties
)
SELECT
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ secretName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified secrets resource.

/*+ delete */
DELETE FROM azure.cdn.secrets
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND secretName = '{{ secretName }}'
AND subscriptionId = '{{ subscriptionId }}';