Skip to main content

encryption_scopes

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

Overview

Nameencryption_scopes
TypeResource
Idazure.cognitive_services.encryption_scopes

Fields

The following fields are returned by SELECT queries:

OK -- Get the EncryptionScopes properties successfully.

NameDatatypeDescription
etagstringResource Etag.
propertiesobjectProperties of Cognitive Services EncryptionScope.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, accountName, subscriptionId, encryptionScopeNameGets the specified EncryptionScope associated with the Cognitive Services account.
listselectresourceGroupName, accountName, subscriptionIdGets the content filters associated with the Azure OpenAI account.
create_or_updateinsertresourceGroupName, accountName, subscriptionId, encryptionScopeNameUpdate the state of specified encryptionScope associated with the Cognitive Services account.
deletedeleteresourceGroupName, accountName, subscriptionId, encryptionScopeNameDeletes the specified encryptionScope associated with the Cognitive Services account.

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 Cognitive Services account.
encryptionScopeNamestringThe name of the encryptionScope associated with the Cognitive Services Account
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets the specified EncryptionScope associated with the Cognitive Services account.

SELECT
etag,
properties,
systemData,
tags
FROM azure.cognitive_services.encryption_scopes
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND encryptionScopeName = '{{ encryptionScopeName }}' -- required
;

INSERT examples

Update the state of specified encryptionScope associated with the Cognitive Services account.

INSERT INTO azure.cognitive_services.encryption_scopes (
data__tags,
data__properties,
resourceGroupName,
accountName,
subscriptionId,
encryptionScopeName
)
SELECT
'{{ tags }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ accountName }}',
'{{ subscriptionId }}',
'{{ encryptionScopeName }}'
RETURNING
etag,
properties,
systemData,
tags
;

DELETE examples

Deletes the specified encryptionScope associated with the Cognitive Services account.

DELETE FROM azure.cognitive_services.encryption_scopes
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND encryptionScopeName = '{{ encryptionScopeName }}' --required
;