managed_instance_encryption_protectors
Creates, updates, deletes, gets or lists a managed_instance_encryption_protectors
resource.
Overview
Name | managed_instance_encryption_protectors |
Type | Resource |
Id | azure.sql.managed_instance_encryption_protectors |
Fields
The following fields are returned by SELECT
queries:
- get
Successfully retrieved the specified managed instance encryption protector.
Name | Datatype | Description |
---|---|---|
kind | string | Kind of encryption protector. This is metadata used for the Azure portal experience. |
properties | object | Resource properties. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , managedInstanceName , encryptionProtectorName , subscriptionId | Gets a managed instance encryption protector. | |
create_or_update | insert | resourceGroupName , managedInstanceName , encryptionProtectorName , subscriptionId | Updates an existing encryption protector. | |
revalidate | exec | resourceGroupName , managedInstanceName , encryptionProtectorName , subscriptionId | Revalidates an existing encryption protector. |
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.
Name | Datatype | Description |
---|---|---|
encryptionProtectorName | string | The name of the encryption protector to be updated. |
managedInstanceName | string | The name of the managed instance. |
resourceGroupName | string | The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
subscriptionId | string | The subscription ID that identifies an Azure subscription. |
SELECT
examples
- get
Gets a managed instance encryption protector.
SELECT
kind,
properties
FROM azure.sql.managed_instance_encryption_protectors
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND managedInstanceName = '{{ managedInstanceName }}' -- required
AND encryptionProtectorName = '{{ encryptionProtectorName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;
INSERT
examples
- create_or_update
- Manifest
Updates an existing encryption protector.
INSERT INTO azure.sql.managed_instance_encryption_protectors (
data__properties,
resourceGroupName,
managedInstanceName,
encryptionProtectorName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ managedInstanceName }}',
'{{ encryptionProtectorName }}',
'{{ subscriptionId }}'
RETURNING
kind,
properties
;
# Description fields are for documentation purposes
- name: managed_instance_encryption_protectors
props:
- name: resourceGroupName
value: string
description: Required parameter for the managed_instance_encryption_protectors resource.
- name: managedInstanceName
value: string
description: Required parameter for the managed_instance_encryption_protectors resource.
- name: encryptionProtectorName
value: string
description: Required parameter for the managed_instance_encryption_protectors resource.
- name: subscriptionId
value: string
description: Required parameter for the managed_instance_encryption_protectors resource.
- name: properties
value: object
description: |
Resource properties.
Lifecycle Methods
- revalidate
Revalidates an existing encryption protector.
EXEC azure.sql.managed_instance_encryption_protectors.revalidate
@resourceGroupName='{{ resourceGroupName }}' --required,
@managedInstanceName='{{ managedInstanceName }}' --required,
@encryptionProtectorName='{{ encryptionProtectorName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;