encryption_scopes
Creates, updates, deletes, gets or lists a encryption_scopes
resource.
Overview
Name | encryption_scopes |
Type | Resource |
Id | azure.storage.encryption_scopes |
Fields
- vw_encryption_scopes
- encryption_scopes
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | text | The name of the resource |
accountName | text | field from the properties object |
creation_time | text | field from the properties object |
encryptionScopeName | text | field from the properties object |
key_vault_properties | text | field from the properties object |
last_modified_time | text | field from the properties object |
require_infrastructure_encryption | text | field from the properties object |
resourceGroupName | text | field from the properties object |
source | text | field from the properties object |
state | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | string | The name of the resource |
properties | object | Properties of the encryption scope. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, encryptionScopeName, resourceGroupName, subscriptionId | Returns the properties for the specified encryption scope. |
list | SELECT | accountName, resourceGroupName, subscriptionId | Lists all the encryption scopes available under the specified storage account. |
patch | UPDATE | accountName, encryptionScopeName, resourceGroupName, subscriptionId | Update encryption scope properties as specified in the request body. Update fails if the specified encryption scope does not already exist. |
put | REPLACE | accountName, encryptionScopeName, resourceGroupName, subscriptionId | 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. |
SELECT
examples
Lists all the encryption scopes available under the specified storage account.
- vw_encryption_scopes
- encryption_scopes
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 }}';
SELECT
id,
name,
properties,
type
FROM azure.storage.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 }}';