encryption_sets
Creates, updates, deletes, gets or lists a encryption_sets
resource.
Overview
Name | encryption_sets |
Type | Resource |
Id | azure.dev_center.encryption_sets |
Fields
- vw_encryption_sets
- encryption_sets
Name | Datatype | Description |
---|---|---|
devCenterName | text | field from the properties object |
devbox_disks_encryption_enable_status | text | field from the properties object |
encryptionSetName | text | field from the properties object |
identity | text | Managed service identity (system assigned and/or user assigned identities) |
key_encryption_key_url | text | field from the properties object |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
identity | object | Managed service identity (system assigned and/or user assigned identities) |
location | string | The geo-location where the resource lives |
properties | object | Properties of the devcenter encryption set. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | devCenterName, encryptionSetName, resourceGroupName, subscriptionId | Gets a devcenter encryption set. |
list | SELECT | devCenterName, resourceGroupName, subscriptionId | Lists all encryption sets in the devcenter. |
create_or_update | INSERT | devCenterName, encryptionSetName, resourceGroupName, subscriptionId | Creates or updates a devcenter encryption set resource |
delete | DELETE | devCenterName, encryptionSetName, resourceGroupName, subscriptionId | Deletes a devcenter encryption set |
update | UPDATE | devCenterName, encryptionSetName, resourceGroupName, subscriptionId | Partially updates a devcenter encryption set. |
SELECT
examples
Lists all encryption sets in the devcenter.
- vw_encryption_sets
- encryption_sets
SELECT
devCenterName,
devbox_disks_encryption_enable_status,
encryptionSetName,
identity,
key_encryption_key_url,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.dev_center.vw_encryption_sets
WHERE devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
identity,
location,
properties,
tags
FROM azure.dev_center.encryption_sets
WHERE devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new encryption_sets
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.dev_center.encryption_sets (
devCenterName,
encryptionSetName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
identity
)
SELECT
'{{ devCenterName }}',
'{{ encryptionSetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: devboxDisksEncryptionEnableStatus
value: []
- name: keyEncryptionKeyUrl
value: string
- name: provisioningState
value: []
- name: identity
value:
- name: principalId
value: string
- name: tenantId
value: string
- name: type
value: []
- name: userAssignedIdentities
value: []
UPDATE
example
Updates a encryption_sets
resource.
/*+ update */
UPDATE azure.dev_center.encryption_sets
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
devCenterName = '{{ devCenterName }}'
AND encryptionSetName = '{{ encryptionSetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified encryption_sets
resource.
/*+ delete */
DELETE FROM azure.dev_center.encryption_sets
WHERE devCenterName = '{{ devCenterName }}'
AND encryptionSetName = '{{ encryptionSetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';