Skip to main content

encryption_scopes

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

Overview

Nameencryption_scopes
TypeResource
Idazure.storage.encryption_scopes

Fields

The following fields are returned by SELECT queries:

OK -- Get encryption scope operation completed successfully.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
propertiesobjectProperties of the encryption scope. (x-ms-client-name: EncryptionScopeProperties)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, accountName, subscriptionId, encryptionScopeNameReturns the properties for the specified encryption scope.
listselectresourceGroupName, accountName, subscriptionId$maxpagesize, $filter, $includeLists all the encryption scopes available under the specified storage account.
patchupdateresourceGroupName, accountName, subscriptionId, encryptionScopeNameUpdate encryption scope properties as specified in the request body. Update fails if the specified encryption scope does not already exist.
putreplaceresourceGroupName, accountName, subscriptionId, encryptionScopeNameSynchronously 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
accountNamestringThe name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
encryptionScopeNamestringThe name of the encryption scope within the specified storage account. Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
resourceGroupNamestringThe name of the resource group within the user's subscription. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$filterstringOptional. When specified, only encryption scope names starting with the filter will be listed.
$includestringOptional, when specified, will list encryption scopes with the specific state. Defaults to All
$maxpagesizeinteger (int32)Optional, specifies the maximum number of encryption scopes that will be included in the list response.

SELECT examples

Returns the properties for the specified encryption scope.

SELECT
id,
name,
properties,
systemData,
type
FROM azure.storage.encryption_scopes
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND encryptionScopeName = '{{ encryptionScopeName }}' -- required
;

UPDATE examples

Update encryption scope properties as specified in the request body. Update fails if the specified encryption scope does not already exist.

UPDATE azure.storage.encryption_scopes
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND encryptionScopeName = '{{ encryptionScopeName }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Synchronously 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.

REPLACE azure.storage.encryption_scopes
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND encryptionScopeName = '{{ encryptionScopeName }}' --required
RETURNING
id,
name,
properties,
systemData,
type;