Skip to main content

encryption_scopes

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

Overview

Nameencryption_scopes
TypeResource
Idazure.cognitive_services.encryption_scopes

Fields

NameDatatypeDescription
accountNametextfield from the properties object
encryptionScopeNametextfield from the properties object
etagtextResource Etag.
key_sourcetextfield from the properties object
key_vault_propertiestextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, encryptionScopeName, resourceGroupName, subscriptionIdGets the specified EncryptionScope associated with the Cognitive Services account.
listSELECTaccountName, resourceGroupName, subscriptionIdGets the content filters associated with the Azure OpenAI account.
create_or_updateINSERTaccountName, encryptionScopeName, resourceGroupName, subscriptionIdUpdate the state of specified encryptionScope associated with the Cognitive Services account.
deleteDELETEaccountName, encryptionScopeName, resourceGroupName, subscriptionIdDeletes the specified encryptionScope associated with the Cognitive Services account.

SELECT examples

Gets the content filters associated with the Azure OpenAI account.

SELECT
accountName,
encryptionScopeName,
etag,
key_source,
key_vault_properties,
provisioning_state,
resourceGroupName,
state,
subscriptionId,
system_data,
tags
FROM azure.cognitive_services.vw_encryption_scopes
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new encryption_scopes resource.

/*+ create */
INSERT INTO azure.cognitive_services.encryption_scopes (
accountName,
encryptionScopeName,
resourceGroupName,
subscriptionId,
tags,
properties
)
SELECT
'{{ accountName }}',
'{{ encryptionScopeName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ properties }}'
;

DELETE example

Deletes the specified encryption_scopes resource.

/*+ delete */
DELETE FROM azure.cognitive_services.encryption_scopes
WHERE accountName = '{{ accountName }}'
AND encryptionScopeName = '{{ encryptionScopeName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';