Skip to main content

rai_blocklist_items

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

Overview

Namerai_blocklist_items
TypeResource
Idazure.cognitive_services.rai_blocklist_items

Fields

NameDatatypeDescription
accountNametextfield from the properties object
etagtextResource Etag.
is_regextextfield from the properties object
patterntextfield from the properties object
raiBlocklistItemNametextfield from the properties object
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, raiBlocklistItemName, raiBlocklistName, resourceGroupName, subscriptionIdGets the specified custom blocklist Item associated with the custom blocklist.
listSELECTaccountName, raiBlocklistName, resourceGroupName, subscriptionIdGets the blocklist items associated with the custom blocklist.
create_or_updateINSERTaccountName, raiBlocklistItemName, raiBlocklistName, resourceGroupName, subscriptionIdUpdate the state of specified blocklist item associated with the Azure OpenAI account.
deleteDELETEaccountName, raiBlocklistItemName, raiBlocklistName, resourceGroupName, subscriptionIdDeletes the specified blocklist Item associated with the custom blocklist.
batch_addEXECaccountName, raiBlocklistName, resourceGroupName, subscriptionIdBatch operation to add blocklist items.
batch_deleteEXECaccountName, raiBlocklistName, resourceGroupName, subscriptionIdBatch operation to delete blocklist items.

SELECT examples

Gets the blocklist items associated with the custom blocklist.

SELECT
accountName,
etag,
is_regex,
pattern,
raiBlocklistItemName,
raiBlocklistName,
resourceGroupName,
subscriptionId,
system_data,
tags
FROM azure.cognitive_services.vw_rai_blocklist_items
WHERE accountName = '{{ accountName }}'
AND raiBlocklistName = '{{ raiBlocklistName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified rai_blocklist_items resource.

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