Skip to main content

rai_blocklists

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

Overview

Namerai_blocklists
TypeResource
Idazure.cognitive_services.rai_blocklists

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
accountNametextfield from the properties object
etagtextResource Etag.
raiBlocklistNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, raiBlocklistName, resourceGroupName, subscriptionIdGets the specified custom blocklist associated with the Azure OpenAI account.
listSELECTaccountName, resourceGroupName, subscriptionIdGets the custom blocklists associated with the Azure OpenAI account.
create_or_updateINSERTaccountName, raiBlocklistName, resourceGroupName, subscriptionIdUpdate the state of specified blocklist associated with the Azure OpenAI account.
deleteDELETEaccountName, raiBlocklistName, resourceGroupName, subscriptionIdDeletes the specified custom blocklist associated with the Azure OpenAI account.

SELECT examples

Gets the custom blocklists associated with the Azure OpenAI account.

SELECT
description,
accountName,
etag,
raiBlocklistName,
resourceGroupName,
subscriptionId,
system_data,
tags
FROM azure.cognitive_services.vw_rai_blocklists
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified rai_blocklists resource.

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