Skip to main content

encryption_scopes

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

Overview

Nameencryption_scopes
TypeResource
Idazure.storage.encryption_scopes

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
accountNametextfield from the properties object
creation_timetextfield from the properties object
encryptionScopeNametextfield from the properties object
key_vault_propertiestextfield from the properties object
last_modified_timetextfield from the properties object
require_infrastructure_encryptiontextfield from the properties object
resourceGroupNametextfield from the properties object
sourcetextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, encryptionScopeName, resourceGroupName, subscriptionIdReturns the properties for the specified encryption scope.
listSELECTaccountName, resourceGroupName, subscriptionIdLists all the encryption scopes available under the specified storage account.
patchUPDATEaccountName, encryptionScopeName, resourceGroupName, subscriptionIdUpdate encryption scope properties as specified in the request body. Update fails if the specified encryption scope does not already exist.
putREPLACEaccountName, encryptionScopeName, resourceGroupName, subscriptionIdSynchronously creates or updates an encryption scope under the specified storage account. If an encryption scope is already created and a subsequent request is issued with different properties, the encryption scope properties will be updated per the specified request.

SELECT examples

Lists all the encryption scopes available under the specified storage account.

SELECT
id,
name,
accountName,
creation_time,
encryptionScopeName,
key_vault_properties,
last_modified_time,
require_infrastructure_encryption,
resourceGroupName,
source,
state,
subscriptionId,
type
FROM azure.storage.vw_encryption_scopes
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

UPDATE example

Updates a encryption_scopes resource.

/*+ update */
UPDATE azure.storage.encryption_scopes
SET
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND encryptionScopeName = '{{ encryptionScopeName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

REPLACE example

Replaces all fields in the specified encryption_scopes resource.

/*+ update */
REPLACE azure.storage.encryption_scopes
SET
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND encryptionScopeName = '{{ encryptionScopeName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';