secrets
Creates, updates, deletes, gets or lists a secrets
resource.
Overview
Name | secrets |
Type | Resource |
Id | azure.cdn.secrets |
Fields
- vw_secrets
- secrets
Name | Datatype | Description |
---|---|---|
deployment_status | text | field from the properties object |
parameters | text | field from the properties object |
profileName | text | field from the properties object |
profile_name | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
secretName | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The JSON object that contains the properties of the Secret to create. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | profileName, resourceGroupName, secretName, subscriptionId | Gets an existing Secret within a profile. |
list_by_profile | SELECT | profileName, resourceGroupName, subscriptionId | Lists existing AzureFrontDoor secrets. |
create | INSERT | profileName, resourceGroupName, secretName, subscriptionId | Creates a new Secret within the specified profile. |
delete | DELETE | profileName, resourceGroupName, secretName, subscriptionId | Deletes an existing Secret within profile. |
SELECT
examples
Lists existing AzureFrontDoor secrets.
- vw_secrets
- 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 }}';
SELECT
properties
FROM azure.cdn.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.cdn.secrets (
profileName,
resourceGroupName,
secretName,
subscriptionId,
properties
)
SELECT
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ secretName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: string
- name: deploymentStatus
value: string
- name: profileName
value: string
- name: parameters
value:
- name: type
value: []
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 }}';